Skip to content

Commit 642d350

Browse files
author
alxndrsn
committed
only build docs when triggered
1 parent 43b77da commit 642d350

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

.github/workflows/github-pages.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
name: GitHub Pages Deploy
22

3+
# Only run workflow when triggered manually from Actions tab
34
on:
4-
push:
5-
tags:
6-
- '\d+\.\d+\.\d+'
7-
# Allow running workflow manually from Actions tab
85
workflow_dispatch:
96

107
# Set permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
@@ -13,11 +10,10 @@ permissions:
1310
pages: write
1411
id-token: write
1512

16-
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
17-
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
13+
# Allow only one concurrent deployment
1814
concurrency:
1915
group: "pages"
20-
cancel-in-progress: false
16+
cancel-in-progress: true
2117

2218
jobs:
2319
build:

0 commit comments

Comments
 (0)