added CI workflow
Some checks failed
Build and Release Typst PDF / build-and-release (push) Failing after 2s
Some checks failed
Build and Release Typst PDF / build-and-release (push) Failing after 2s
This commit is contained in:
31
.gitea/workflows/release.yml
Normal file
31
.gitea/workflows/release.yml
Normal file
@@ -0,0 +1,31 @@
|
||||
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."
|
||||
Reference in New Issue
Block a user