diff --git a/.gitea/workflows/publish.yaml b/.gitea/workflows/publish.yaml index a62f5a7..fcd813e 100644 --- a/.gitea/workflows/publish.yaml +++ b/.gitea/workflows/publish.yaml @@ -21,8 +21,8 @@ jobs: with: images: fudaoyuanicu/015-app tags: | - type=pep440,pattern={{version}} - type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }} + type=semver,pattern={{version}} + type=raw,value=latest,enable=${{ !contains(github.ref_name, '-') }} - name: Set build time id: build-time run: | @@ -56,8 +56,8 @@ jobs: with: images: fudaoyuanicu/015-worker tags: | - type=pep440,pattern={{version}} - type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }} + type=semver,pattern={{version}} + type=raw,value=latest,enable=${{ !contains(github.ref_name, '-') }} - name: Set build time id: build-time run: | @@ -76,6 +76,7 @@ jobs: deploy: runs-on: ubuntu-latest needs: [build-app, build-worker] + if: ${{ !contains(github.ref_name, '-') }} steps: - name: Send deployment webhook run: |