Skip to content

Commit 53c9520

Browse files
committed
Improved CI/CD
1 parent a1b1f79 commit 53c9520

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/ci-cd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,11 @@ jobs:
127127
draft: false
128128
prerelease: false
129129

130-
# Deploy web application to GitHub Pages (only on main branch, not tags)
130+
# Deploy web application to GitHub Pages (on tag push, not main branch)
131131
deploy-web:
132132
runs-on: ubuntu-latest
133133
needs: test
134-
if: github.ref == 'refs/heads/main'
134+
if: startsWith(github.ref, 'refs/tags/v')
135135
name: Deploy Web to GitHub Pages
136136

137137
permissions:

0 commit comments

Comments
 (0)