style(rules): standardize skill formatting and terminology #20
Workflow file for this run
This file contains hidden or 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: Generate and Release PDFs | |
| on: | |
| push: | |
| tags: | |
| - '*' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 # Ensure we have tags and history for commit message | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install weasyprint | |
| - name: Install pandoc | |
| uses: pandoc/actions/setup@v1 | |
| - name: Run Build Script | |
| run: python ./scripts/build.py | |
| - name: Get latest commit message | |
| id: commit_message | |
| run: | | |
| echo "msg<<EOF" >> $GITHUB_OUTPUT | |
| git log -1 --pretty=%B >> $GITHUB_OUTPUT | |
| echo "EOF" >> $GITHUB_OUTPUT | |
| - name: Zip PDFs | |
| run: | | |
| cd build | |
| zip ../eda-rpg-pdfs.zip *.pdf | |
| - name: Upload Zip as Artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: eda-rpg-pdfs-zip | |
| path: eda-rpg-pdfs.zip | |
| - name: Create Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: eda-rpg-pdfs.zip | |
| tag_name: ${{ github.ref_name }} | |
| name: "Eda RPG - ${{ github.ref_name }}" | |
| body: ${{ steps.commit_message.outputs.msg }} | |
| draft: false | |
| prerelease: false | |
| make_latest: true | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |