File tree Expand file tree Collapse file tree 1 file changed +21
-17
lines changed Expand file tree Collapse file tree 1 file changed +21
-17
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,9 @@ name: Deploy Jekyll with GitHub Pages dependencies preinstalled
4
4
on :
5
5
# Runs on pushes targeting the default branch
6
6
push :
7
- branches :
8
- - ' release/**'
7
+ tags :
8
+ ' v*'
9
+
9
10
10
11
# Allows you to run this workflow manually from the Actions tab
11
12
workflow_dispatch :
@@ -23,21 +24,24 @@ concurrency:
23
24
cancel-in-progress : false
24
25
25
26
jobs :
26
- # Build job
27
- build :
28
- runs-on : ubuntu-latest
29
- steps :
30
- - name : Checkout
31
- uses : actions/checkout@v4
32
- - name : Setup Pages
33
- uses : actions/configure-pages@v5
34
- - name : Build with Jekyll
35
- uses : actions/jekyll-build-pages@v1
36
- with :
37
- source : ./
38
- destination : ./_site
39
- - name : Upload artifact
40
- uses : actions/upload-pages-artifact@v3
27
+ manual-release-only-job :
28
+ # This 'if' condition is the key. It ensures the job only runs if the
29
+ # tag name does NOT contain the substring 'nightly'.
30
+ if : " contains(github.ref_name, 'nightly') == false"
31
+ # Build job
32
+ runs-on : ubuntu-latest
33
+ steps :
34
+ - name : Checkout
35
+ uses : actions/checkout@v4
36
+ - name : Setup Pages
37
+ uses : actions/configure-pages@v5
38
+ - name : Build with Jekyll
39
+ uses : actions/jekyll-build-pages@v1
40
+ with :
41
+ source : ./
42
+ destination : ./_site
43
+ - name : Upload artifact
44
+ uses : actions/upload-pages-artifact@v3
41
45
42
46
# Deployment job
43
47
deploy :
You can’t perform that action at this time.
0 commit comments