diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index d41473a..2531c73 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -59,9 +59,10 @@ jobs: if: github.event_name == 'pull_request' || github.ref_type == 'tag' run: scripts/ci.sh builds - # The README's badges are files on a branch of their own, replaced at each push to main. + # The README's badges are files on a branch of their own, replaced at each push to main and + # at each tag (the release badge says which tag is the latest) - name: Publish the badges - if: github.event_name == 'push' && github.ref == 'refs/heads/main' + if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref_type == 'tag') env: GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} run: |