Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.
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 }}