Some checks failed
Build and Release Typst PDF / build-and-release (push) Failing after 2s
32 lines
695 B
YAML
32 lines
695 B
YAML
name: Build and Release Typst PDF
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
|
|
jobs:
|
|
build-and-release:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Typst
|
|
uses: chataigner/setup-typst@v1
|
|
with:
|
|
version: 'latest'
|
|
|
|
- name: Compile Typst document
|
|
run: typst compile main.typ output.pdf
|
|
|
|
- name: Create Release
|
|
uses: actions/upload-release-action@v2
|
|
with:
|
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
|
file: output.pdf
|
|
asset_name: protokoll.pdf
|
|
tag: ${{ github.ref }}
|
|
overwrite: true
|
|
body: "Automated PDF build."
|