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"