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"
|
11
beitritt.typ
11
beitritt.typ
|
@ -3,8 +3,11 @@
|
|||
.replace("231f20", "f5c600")
|
||||
}
|
||||
|
||||
#let version = json("metadata.json").tag;
|
||||
|
||||
#set page(paper: "a4",
|
||||
background: align(top+right, {
|
||||
background: {
|
||||
align(top+right, {
|
||||
box(inset: 1cm,
|
||||
rotate(-90deg,
|
||||
reflow: true,
|
||||
|
@ -14,7 +17,9 @@
|
|||
)
|
||||
)
|
||||
)
|
||||
}),
|
||||
})
|
||||
align(bottom+right, box(inset:1cm, text(size: 8pt, fill: color.gray, version)))
|
||||
},
|
||||
margin: (top: 1cm, bottom: 1cm, left: 2cm, right: 2cm)
|
||||
)
|
||||
#set text(font: "ISOCPEUR", size: 16pt )
|
||||
|
@ -75,7 +80,7 @@ Ich bezahle als Mitglied dabei den\
|
|||
|
||||
#list(
|
||||
marker: checkbox,
|
||||
[vollen Betrag von mindestens 30€/Monat],
|
||||
[vollen Betrag von mindestens 40€/Monat],
|
||||
[ermäßigten Betrag von 16€/Monat],
|
||||
[Beitrag für juristische Personen von mindestens 54€/Monat, und zwar #inputbox(length: 5em)€/Monat]
|
||||
)
|
||||
|
|
3
metadata.json
Normal file
3
metadata.json
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"tag": "version"
|
||||
}
|
Loading…
Reference in a new issue