From 2182a07ea19dc3f71ccf06d70440f1f15899a992 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20S=C3=B6derberg?= Date: Sat, 11 Jul 2026 17:25:02 +0200 Subject: [PATCH] Trigger workflow on release --- .gitea/workflows/build-release.yaml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/build-release.yaml b/.gitea/workflows/build-release.yaml index 9aea374..a545b91 100644 --- a/.gitea/workflows/build-release.yaml +++ b/.gitea/workflows/build-release.yaml @@ -1,13 +1,12 @@ -name: Build & Release +name: Build & Attach Release on: - push: - tags: - - '*' + release: + types: [published] jobs: build-and-release: - name: Build and Create Release + name: Build and Attach ZIP runs-on: ubuntu-latest steps: @@ -27,15 +26,14 @@ jobs: - name: Create ZIP archive run: | - # Zipping from inside the dist folder ensures 'dist' isn't the root folder in the zip cd dist zip -r ../lirkab-site.zip . - - name: Create Release & Attach ZIP + - name: Attach ZIP to Release uses: softprops/action-gh-release@v2 with: - name: "Release ${{ github.ref_name }}" - body: "Automated release of the Lirkab static site." + name: ${{ github.event.release.tag_name }} + body: ${{ github.event.release.body || 'Automated release of the Lirkab static site.' }} files: lirkab-site.zip env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file