Allow the action to create a release (#10) #2
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: 🚀 Release | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
permissions: | |
contents: write | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: yusancky/setup-typst@v2 | |
with: | |
version: latest | |
- name: Compile the manual | |
run: typst compile physica-manual.typ | |
- name: Release | |
id: release | |
uses: softprops/action-gh-release@v1 | |
with: | |
name: Physica ${{ github.ref_name }} | |
files: physica-manual.pdf | |
fail_on_unmatched_files: true | |
- name: Generate the job summary | |
run: echo '🎉 [Release for ${{ github.ref_name }}](${{ steps.release.outputs.url }}) is ready.' >> $GITHUB_STEP_SUMMARY |