Skip to content

Commit 84741a6

Browse files
committed
Make deploy only on new version
1 parent 12f0dbb commit 84741a6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/build-website.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ name: Build website
55

66
on:
77
push:
8+
tags:
9+
- "v[0-9]+.[0-9]+.[0-9]+"
810
branches:
9-
- main
10-
- staging/**
11+
- "staging/**"
1112
workflow_dispatch:
1213

1314
permissions:
@@ -19,6 +20,7 @@ concurrency:
1920

2021
jobs:
2122
build-website:
23+
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/staginge/')
2224
runs-on: ubuntu-latest
2325
steps:
2426
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)