fix: 👷 update ci to new gitea ref
All checks were successful
divent / lint (push) Successful in 1m55s
divent / docker (push) Successful in 46s
divent / pypi (push) Successful in 1m9s

This commit is contained in:
Michel Roux 2024-03-01 22:15:12 +01:00
parent 304f80a3f5
commit 59926c9b5d

View File

@ -37,7 +37,7 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: docker/build-push-action@v5
with:
push: ${{ gitea.ref == 'refs/heads/master' || startsWith(gitea.ref, 'refs/tags') }}
push: ${{ gitea.ref_name == 'master' || gitea.ref_type == 'tag' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
@ -45,7 +45,7 @@ jobs:
runs-on: ubuntu-latest
container: python:3.12.2
needs: [lint]
if: startsWith(gitea.ref, 'refs/tags')
if: gitea.ref_type == 'tag'
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.POETRY_PYPI_TOKEN_PYPI }}
steps: