diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3e9ae5d..7badd47 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,13 +1,15 @@ name: Deploy Docker image to Docker Hub on: push: + branches: + - main tags: - 'v[0-9].[0-9]+.[0-9]+' jobs: deploy: runs-on: ubuntu-latest - if: ${{ github.ref == 'refs/heads/main' }} + if: ${{ startsWith(github.ref, 'refs/tags/') }} steps: - name: Extract Version id: version_step