Skip to content

Commit 04850a4

Browse files
authored
Update main.yml
1 parent a862696 commit 04850a4

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

.github/workflows/main.yml

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,20 +41,26 @@ jobs:
4141
_build/src/RelWithDebInfo/ectool.exe
4242
_build/src/RelWithDebInfo/ectool.pdb
4343
44-
45-
- name: Upload Release AssetBuild Artifacts
46-
uses: actions/upload-release-asset@v4
44+
- name: Create Release
45+
id: create_release
46+
uses: actions/create-release@v1
47+
env:
48+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4749
with:
48-
name: ectool
49-
path: |
50-
_build/src/RelWithDebInfo/ectool.exe
51-
_build/src/RelWithDebInfo/ectool.pdb
50+
tag_name: ${{ github.ref }}
51+
release_name: Release ${{ github.ref }}
52+
draft: false
53+
prerelease: false
5254

53-
- name: upload windows artifact
54-
uses: actions/upload-release-asset@v4
55+
- name: Upload Release Asset
56+
id: upload-release-asset
57+
uses: actions/upload-release-asset@v1
5558
env:
56-
GITHUB_TOKEN: ${{ github.token }}
59+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5760
with:
58-
upload_url: ${{ steps.create_release.outputs.upload_url }}
61+
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
62+
asset_path: ectool.zip
63+
asset_name: ectool.zip
64+
asset_content_type: application/zip
5965

6066

0 commit comments

Comments
 (0)