diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 87f4442..219522c 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -175,7 +175,7 @@ jobs: run: | sudo dpkg-buildpackage -us -uc -b -d - name: Upload to Gitea Release - if: startsWith(github.ref, 'refs/tags/') + if: github.ref_type == 'tag' env: GITEA_TOKEN: ${{ secrets.GITEATOKEN }} run: | @@ -208,7 +208,7 @@ jobs: run: | sudo dpkg-buildpackage -us -uc -b -d - name: Upload to Gitea Release - if: startsWith(github.ref, 'refs/tags/') + if: github.ref_type == 'tag' env: GITEA_TOKEN: ${{ secrets.GITEATOKEN }} run: | @@ -248,7 +248,7 @@ jobs: chmod +x build-rpm.sh ./build-rpm.sh - name: Upload to Gitea Release - if: startsWith(github.ref, 'refs/tags/') + if: github.ref_type == 'tag' env: GITEA_TOKEN: ${{ secrets.GITEATOKEN }} run: | @@ -285,7 +285,7 @@ jobs: chmod +x build-alpine.sh SKIP_CARGO_BUILD=1 ./build-alpine.sh - name: Upload to Gitea Release - if: startsWith(github.ref, 'refs/tags/') + if: github.ref_type == 'tag' env: GITEA_TOKEN: ${{ secrets.GITEATOKEN }} run: |