Skip to content

Commit

Permalink
feat[ci]: Create Release & Upload Release Asset
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangjiequan committed Oct 7, 2023
1 parent f93fddc commit b91cf4f
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,37 @@ jobs:
with:
name: AssetStudio.net6
path: AssetStudioGUI/bin/Release/net6.0-windows/publish

- name: Create Release
id: create_release
uses: actions/create-release@v1
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: Description of the release.
draft: false
prerelease: false

- name: Upload Release Asset (.Net472)
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./AssetStudioGUI/bin/Release/net472/AssetStudio.net472.zip
asset_name: AssetStudio.net472.zip
asset_content_type: application/zip

- name: Upload Release Asset (.Net5)
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./AssetStudioGUI/bin/Release/net5.0-windows/publish/AssetStudio.net5.zip
asset_name: AssetStudio.net5.zip
asset_content_type: application/zip

- name: Upload Release Asset (.Net6)
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./AssetStudioGUI/bin/Release/net6.0-windows/publish/AssetStudio.net6.zip
asset_name: AssetStudio.net6.zip
asset_content_type: application/zip

0 comments on commit b91cf4f

Please sign in to comment.