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 08cb206 commit d177bed
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,12 @@ jobs:
Move-Item -Path .\build\main.exe -Destination .\build\onedisc.exe
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@latest
uses: Shopify/upload-to-release@v2.0.0
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./build/onedisc.exe
asset_name: OneDisc for ${{ matrix.os }}-${{ matrix.arch }}.exe
asset_content_type: application/octet-stream
# upload_url: ${{ github.event.release.upload_url }}
path: ./build/onedisc.exe
name: OneDisc for ${{ matrix.os }}-${{ matrix.arch }}.exe
# asset_content_type: application/octet-stream


build:
Expand Down Expand Up @@ -148,11 +147,8 @@ jobs:
zip -r onedisc.zip onedisc
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@latest
uses: Shopify/upload-to-release@v2.0.0
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./build/onedisc.zip
asset_name: OneDisc for ${{ matrix.os }}-${{ matrix.arch }}.zip
asset_content_type: application/zip
path: ./build/onedisc.zip
name: OneDisc for ${{ matrix.os }}-${{ matrix.arch }}.zip

0 comments on commit d177bed

Please sign in to comment.