Skip to content

Commit

Permalink
Workaround for upload-release-asset
Browse files Browse the repository at this point in the history
  • Loading branch information
PHPirates committed Oct 1, 2020
1 parent e25b531 commit 40a3cca
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release-pdf-on-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,17 @@ jobs:
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
# upload-release-asset does not support wildcards or environment variables at the moment
run: |
echo ::set-output name=ARTIFACT_PATH::./src/$FILE.pdf
echo ::set-output name=ARTIFACT_NAME::$FILE.pdf
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./src/$FILE.pdf
asset_name: $FILE.pdf
asset_path: ${{ steps.create_release.outputs.ARTIFACT_PATH }}
asset_name: ${{ steps.create_release.outputs.ARTIFACT_NAME }}
asset_content_type: application/pdf

0 comments on commit 40a3cca

Please sign in to comment.