Skip to content

Commit

Permalink
Update convert.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
smiley9000 authored Feb 4, 2024
1 parent 589951f commit cc85da3
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions .github/workflows/convert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,9 @@ jobs:
run: mv ./last/EXT4_RW_AP.zip ./last/${{ github.event.inputs.Firmware }}.zip

- name: Upload Release Asset
if: github.event_name == 'workflow_dispatch'
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ github.event.client_payload.upload_url }}
asset_path: ./last/${{ github.event.inputs.Firmware }}.zip
asset_name: ${{ github.event.inputs.Firmware }}.zip
asset_content_type: application/zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload Release Asset
if: github.event_name == 'push'
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
upload_url: ${{ github.event.client_payload.upload_url }} # Use client_payload for workflow_dispatch
asset_path: ./last/${{ github.event.inputs.Firmware }}.zip
asset_name: ${{ github.event.inputs.Firmware }}.zip
asset_content_type: application/zip
Expand Down

0 comments on commit cc85da3

Please sign in to comment.