Skip to content

Commit c4d9a03

Browse files
committed
Github releases with actions
1 parent c4c0fae commit c4d9a03

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/release.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,24 @@ jobs:
3939
build_dir: build
4040
env:
4141
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
- name: Create Release
43+
id: create_release
44+
uses: actions/[email protected]
45+
env:
46+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
with:
48+
tag_name: ${{ github.ref }}
49+
release_name: Release ${{ github.ref }}
50+
draft: false
51+
prerelease: false
52+
- name: Upload Release Asset
53+
id: upload-release-asset
54+
uses: actions/[email protected]
55+
env:
56+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57+
with:
58+
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
59+
asset_path: ./currentbuild.zip
60+
asset_name: currentbuild.zip
61+
asset_content_type: application/zip
4262

0 commit comments

Comments
 (0)