Skip to content

Commit f124c7e

Browse files
committed
trying to generate a release
1 parent c73a9d1 commit f124c7e

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

.github/workflows/build.yml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,28 @@ jobs:
4040
uses: actions/upload-artifact@v4
4141
with:
4242
name: utm-link-editor-windows-amd64
43-
path: dist/utm-link-editor-windows-amd64.exe
43+
path: dist/utm-link-editor-windows-amd64.exe
44+
- name: Create Release
45+
id: create_release
46+
uses: actions/create-release@v1
47+
env:
48+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
49+
with:
50+
tag_name: ${{ github.ref }}
51+
release_name: Release ${{ github.ref }}
52+
body: |
53+
Changes in this Release
54+
- First Change
55+
- Second Change
56+
draft: false
57+
prerelease: false
58+
- name: Upload Release Asset
59+
id: upload-release-asset
60+
uses: actions/upload-release-asset@v1
61+
env:
62+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
63+
with:
64+
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
65+
asset_path: dist/utm-link-editor-windows-amd64.exe
66+
asset_name: utm-link-editor-windows-amd64.zip
67+
asset_content_type: application/zip

0 commit comments

Comments
 (0)