Skip to content

Commit

Permalink
ci: add workflow for tags
Browse files Browse the repository at this point in the history
  • Loading branch information
pl-buiquang committed Jul 1, 2024
1 parent cec9558 commit e1fc1fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ on:
push:
branches:
- "**"
tags:
- "**"

jobs:
build:
Expand Down Expand Up @@ -48,7 +50,7 @@ jobs:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

publish:
if: github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')
needs: build
runs-on: ubuntu-latest

Expand Down

0 comments on commit e1fc1fa

Please sign in to comment.