This repository has been archived by the owner on Oct 8, 2024. It is now read-only.
v0.7.2 #47
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Add Artifacts to Release | |
on: | |
release: | |
types: [published] | |
jobs: | |
get-pdf-artifacts: | |
uses: sean-clayton/two-swords/.github/workflows/build-pdf.yml@main | |
add-artifacts: | |
runs-on: ubuntu-latest | |
needs: get-pdf-artifacts | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/download-artifact@v3 | |
with: | |
name: pdf-artifact | |
path: dist | |
# Create a release for this specific version | |
- name: Update Release with Files | |
uses: ncipollo/release-action@v1 | |
with: | |
allowUpdates: true # Set this to false if you want to prevent updating existing releases | |
name: ${{ github.event.release.name }} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
artifacts: dist/*.pdf | |
makeLatest: ${{ github.event.release.prerelease != true || false }} | |
tag: ${{ github.event.release.tag_name }} | |
body: ${{ github.event.release.body }} |