Skip to content

Commit

Permalink
Separate metadata step
Browse files Browse the repository at this point in the history
  • Loading branch information
PHPirates committed Oct 1, 2020
1 parent 40a3cca commit b9d1127
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/release-pdf-on-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,18 @@ jobs:
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Prepare output path and output name
id: prepare_metadata
# 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: ${{ steps.create_release.outputs.ARTIFACT_PATH }}
asset_name: ${{ steps.create_release.outputs.ARTIFACT_NAME }}
asset_path: ${{ steps.prepare_metadata.outputs.ARTIFACT_PATH }}
asset_name: ${{ steps.prepare_metadata.outputs.ARTIFACT_NAME }}
asset_content_type: application/pdf

0 comments on commit b9d1127

Please sign in to comment.