Skip to content

Commit 212f9e1

Browse files
authored
Update docs-page-action.yml
1 parent 770be3f commit 212f9e1

File tree

1 file changed

+21
-17
lines changed

1 file changed

+21
-17
lines changed

.github/workflows/docs-page-action.yml

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ name: Deploy Jekyll with GitHub Pages dependencies preinstalled
44
on:
55
# Runs on pushes targeting the default branch
66
push:
7-
branches:
8-
- 'release/**'
7+
tags:
8+
'v*'
9+
910

1011
# Allows you to run this workflow manually from the Actions tab
1112
workflow_dispatch:
@@ -23,21 +24,24 @@ concurrency:
2324
cancel-in-progress: false
2425

2526
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
4145

4246
# Deployment job
4347
deploy:

0 commit comments

Comments
 (0)