Skip to content

Commit d7ab6f5

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

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/build-website.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ name: Build website
55

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

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

2021
jobs:
2122
build-website:
23+
if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/staging/**' }}
2224
runs-on: ubuntu-latest
2325
steps:
2426
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)