diff --git a/.github/workflows/release-pdf-on-tag.yml b/.github/workflows/release-pdf-on-tag.yml index 9bbc149..eb2c96f 100644 --- a/.github/workflows/release-pdf-on-tag.yml +++ b/.github/workflows/release-pdf-on-tag.yml @@ -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 \ No newline at end of file