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