Skip to content

Commit 3c3abb7

Browse files
author
avandras
committed
Simplify and modernize releasing
1 parent 190dbe8 commit 3c3abb7

File tree

1 file changed

+6
-21
lines changed

1 file changed

+6
-21
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -17,29 +17,14 @@ jobs:
1717
- name: Checkout code
1818
uses: actions/checkout@v4
1919

20-
- name: Build project # This would actually build your project, using zip for an example artifact
20+
- name: Build project
2121
shell: pwsh
2222
run: |
2323
.\make.ps1
2424
25-
- name: Create Release
26-
id: create_release
27-
uses: actions/create-release@v1
28-
env:
29-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
- name: Release Artifacts
26+
uses: softprops/action-gh-release@v2
3027
with:
31-
tag_name: ${{ github.ref }}
32-
release_name: Release ${{ github.ref }}
33-
draft: false
34-
prerelease: false
35-
36-
- name: Upload Release Asset (zip)
37-
id: upload-release-asset-zip
38-
uses: actions/upload-release-asset@v1
39-
env:
40-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41-
with:
42-
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
43-
asset_path: ./PES.zip
44-
asset_name: PES.zip
45-
asset_content_type: application/zip
28+
files: |
29+
*.zip
30+
*.tar.gz

0 commit comments

Comments
 (0)