Skip to content

Commit

Permalink
Update build.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
tiansongyu authored Nov 27, 2024
1 parent 380ede3 commit 6d32b24
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,25 @@ jobs:
with:
name: Release-Binaries
path: x64/Release/

- name: Create Release
if: env.UPDATE_AVAILABLE == 'true'
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: 'v1.0.${{ github.run_number }}'
release_name: 'Release v1.0.${{ github.run_number }}'
draft: false
prerelease: false

- name: Upload Release Asset
if: env.UPDATE_AVAILABLE == 'true'
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: x64/Release/
asset_name: Release-Binaries.zip
asset_content_type: application/zip

0 comments on commit 6d32b24

Please sign in to comment.