We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 174b889 commit 1c00f1bCopy full SHA for 1c00f1b
.github/workflows/deploy-docs.yml .github/workflows/build-deploy-docs.yml.github/workflows/deploy-docs.yml renamed to .github/workflows/build-deploy-docs.yml
@@ -1,13 +1,17 @@
1
-name: Deploy docs
+name: Build and deploy docs
2
+
3
on:
4
+ pull_request:
5
+ branches:
6
+ - main
7
push:
8
branches:
9
- main
10
workflow_dispatch: # manually triggered
11
12
jobs:
- deploy:
- name: Deploy docs to GitHub Pages
13
+ build:
14
+ name: Build docs website
15
runs-on: ubuntu-latest
16
steps:
17
- name: Checkout repository
@@ -30,6 +34,7 @@ jobs:
30
34
run: pnpm build
31
35
32
36
- name: Deploy to GitHub Pages
37
+ if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
33
38
uses: peaceiris/actions-gh-pages@v3
39
with:
40
github_token: ${{ secrets.GITHUB_TOKEN }}
.github/workflows/build-docs.yml
0 commit comments