From 71e51f65d00a7967c4a0fe4bf54ea4bf554de0b7 Mon Sep 17 00:00:00 2001 From: Nils Pukropp Date: Thu, 12 Feb 2026 16:55:17 +0100 Subject: [PATCH] updated action --- .gitea/workflows/build-pdf.yaml | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/build-pdf.yaml b/.gitea/workflows/build-pdf.yaml index 5ff0849..bf89263 100644 --- a/.gitea/workflows/build-pdf.yaml +++ b/.gitea/workflows/build-pdf.yaml @@ -35,11 +35,28 @@ jobs: run: | chmod +x build.sh ./build.sh + - name: Update Nightly Tag + # This moves the 'nightly' tag to the current commit + run: | + git config user.name "Gitea Actions" + git config user.email "actions@gitea.local" + # Force create/move the tag locally + git tag -f nightly + # Force push the tag to the remote + git push -f origin nightly - - name: Upload Artifacts - uses: actions/upload-artifact@v3 + - name: Publish Nightly Release + uses: softprops/action-gh-release@v1 with: - name: mathe-merkblaetter - # Your script outputs to the ./build directory - path: build/*.pdf - if-no-files-found: error + tag_name: nightly + name: Nightly Build + body: | + **Automated Nightly Build** + + Triggered by commit: `${{ gitea.sha }}` + Date: ${{ gitea.event.head_commit.timestamp }} + files: build/*.pdf + prerelease: true + draft: false + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}