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