Skip to content

Commit

Permalink
Update build-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
This-is-XiaoDeng authored Dec 17, 2023
1 parent e46bb96 commit 6a65481
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,15 @@ jobs:
run: |
Move-Item -Path .\build\main.exe -Destination .\build\onedisc.exe

- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@latest
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/onedisc.exe
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./build/onedisc.exe
asset_name: OneDisc for ${{ matrix.os }}-${{ matrix.arch }}.exe
release_url: ${{ github.event.release.url }}
asset_content_type: application/octet-stream
token: ${{ secrets.GITHUB_TOKEN }}


build:
Expand Down Expand Up @@ -149,10 +150,12 @@ jobs:
zip -r onedisc.zip onedisc
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@latest
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/onedisc.zip
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./build/onedisc.zip
asset_name: OneDisc for ${{ matrix.os }}-${{ matrix.arch }}.zip
release_url: ${{ github.event.release.url }}
asset_content_type: application/zip
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 6a65481

Please sign in to comment.