add document version and forgejo action
This commit is contained in:
parent
9f2945066e
commit
c7c05b1972
3 changed files with 45 additions and 9 deletions
28
.forgejo/workflows/build_release.yml
Normal file
28
.forgejo/workflows/build_release.yml
Normal file
|
@ -0,0 +1,28 @@
|
|||
on:
|
||||
push:
|
||||
tags:
|
||||
- "v*"
|
||||
|
||||
jobs:
|
||||
upload-release:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- run: |
|
||||
apt-get update
|
||||
apt-get install -y curl unzip
|
||||
curl -L -o isocpeur.zip http://www.schriftarten-fonts.de/d/11828/isocpeur.zip && unzip isocpeur.zip
|
||||
curl -L https://github.com/typst/typst/releases/download/v0.12.0/typst-x86_64-unknown-linux-musl.tar.xz | tar -xJ
|
||||
chmod +x typst-x86_64-unknown-linux-musl/typst
|
||||
- run: |
|
||||
sed -i "s/version/${GITHUB_REF#refs/tags/}/g" metadata.json
|
||||
./typst-x86_64-unknown-linux-musl/typst compile --font-path . beitritt.typ
|
||||
mkdir -p dist/release
|
||||
mv beitritt.pdf dist/release
|
||||
- uses: actions/forgejo-release@v2
|
||||
with:
|
||||
direction: upload
|
||||
token: ${{ secrets.TOKEN }}
|
||||
url: https://code.flipdot.org
|
||||
release-dir: dist/release
|
||||
release-notes: "flipdot Beitrittserklärung"
|
Loading…
Add table
Add a link
Reference in a new issue