From 55a1cf70cd99cdcc3d37d1d5c58dada360319adc Mon Sep 17 00:00:00 2001 From: Anthony Correa Date: Sun, 2 Mar 2025 11:49:18 -0600 Subject: [PATCH] Add universal tag trigger for release workflow - Updated workflow to trigger on all tag pushes instead of just published releases. --- .gitea/workflows/main.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/main.yml b/.gitea/workflows/main.yml index 84b303f..7163a65 100644 --- a/.gitea/workflows/main.yml +++ b/.gitea/workflows/main.yml @@ -1,8 +1,10 @@ name: Release Creation on: - release: - types: [published] + push: + # Pattern matched against refs/tags + tags: + - '*' jobs: build: @@ -24,8 +26,8 @@ jobs: env: version: ${{steps.get_version.outputs.version-without-v}} url: https://gitea.ascorrea.com/${{github.repository}} - manifest: https://gitea.ascorrea.com/${{github.repository}}/releases/latest/download/module.json - download: https://gitea.ascorrea.com/${{github.repository}}/releases/download/${{github.event.release.tag_name}}/module.zip + manifest: https://gitea.ascorrea.com/${{github.repository}}/releases/download/latest/module.json + download: https://gitea.ascorrea.com/${{github.repository}}/releases/download/${{ steps.get_version.outputs.version }}/module.zip # Create a zip file with all files required by the module to add to the release - name: Create files (module.zip, module.json) for release