Skip to content

Commit

Permalink
Merge pull request #141 from oddstr13:pr-release-next-workflows-24
Browse files Browse the repository at this point in the history
🔩 Fix upload_url input to GitHub upload?
  • Loading branch information
oddstr13 authored Sep 25, 2023
2 parents 4a38c0e + 78f488c commit 0a56b3e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ on:
required: true
type: string

env:
upload_url: ${{ github.event_name == 'release' && github.event.release.upload_url || github.event.inputs.upload_url }}

jobs:
build-publish:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -57,7 +54,7 @@ jobs:
- name: Upload GitHub Release Artifacts
uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ env.upload_url }}
upload_url: "${{ github.event_name == 'release' && github.event.release.upload_url || github.event.inputs.upload_url }}"
asset_path: 'dist/*'
overwrite: true

0 comments on commit 0a56b3e

Please sign in to comment.