Skip to content

feat: use GitHub Actions to build PDF files #2

feat: use GitHub Actions to build PDF files

feat: use GitHub Actions to build PDF files #2

Workflow file for this run

name: Build Typst document
on: [push, workflow_dispatch]
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Run
run: |
cargo install --git https://github.com/typst/typst --locked typst-cli
./setup-font.sh
./compile.sh
- name: Upload Build files
uses: actions/upload-artifact@v3
with:
name: PDFs
path: |
./build
- name: Get current date
id: date
run: echo "DATE=$(date +%Y-%m-%d-%H:%M)" >> $GITHUB_ENV
- name: Release
uses: softprops/action-gh-release@v1
if: github.ref_type == 'tag'
with:
name: "${{ github.ref_name }} — ${{ env.DATE }}"
files: "*.pdf"