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

This commit is contained in:
Michel Roux 2024-03-01 22:15:12 +01:00
parent 304f80a3f5
commit 59926c9b5d
1 changed files with 2 additions and 2 deletions

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: