Skip to content

Commit 5457452

Browse files
committed
Set doc deployment on release publication
The docs should be deployed when a new release is publishing. There is no point to deploy the docs every time when the master branch is updated. The proposed change sets automatic doc deployment only on a new release publication or manually.
1 parent eeaf1d7 commit 5457452

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
name: Build and Deploy Docs
22

3-
# Deploy docs only for master
3+
# Deploy docs when a new release is published or manually
44
on:
5-
push:
6-
branches:
7-
- "master"
5+
release:
6+
types: [published]
7+
workflow_dispatch:
88

99
# Allow deployment to GitHub Pages
1010
permissions:

0 commit comments

Comments
 (0)