Skip to content

Commit

Permalink
Update add_file_to_release.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
mkanet authored Feb 22, 2025
1 parent 0b0596f commit 139c27f
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/add_file_to_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,12 @@ jobs:
prerelease: false
if: ${{ env.release_id == '' }}

- name: Generate final upload URL
id: generate_upload_url
run: |
echo "generated_url=/~https://github.com/${{ github.repository }}/archive/refs/tags/${{ github.ref_name }}.zip" >> $GITHUB_ENV
- name: Upload ZIP to Release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url || format('https://uploads.github.com/repos/{0}/releases/{1}/assets{{?name}}', github.repository, env.release_id) }}
asset_path: ./output/plex_recently_added.zip
asset_name: plex_recently_added.zip
asset_content_type: application/zip

0 comments on commit 139c27f

Please sign in to comment.