Skip to content

Commit 1c00f1b

Browse files
committed
ci updates
1 parent 174b889 commit 1c00f1b

File tree

2 files changed

+8
-32
lines changed

2 files changed

+8
-32
lines changed
Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
1-
name: Deploy docs
1+
name: Build and deploy docs
2+
23
on:
4+
pull_request:
5+
branches:
6+
- main
37
push:
48
branches:
59
- main
610
workflow_dispatch: # manually triggered
711

812
jobs:
9-
deploy:
10-
name: Deploy docs to GitHub Pages
13+
build:
14+
name: Build docs website
1115
runs-on: ubuntu-latest
1216
steps:
1317
- name: Checkout repository
@@ -30,6 +34,7 @@ jobs:
3034
run: pnpm build
3135

3236
- name: Deploy to GitHub Pages
37+
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
3338
uses: peaceiris/actions-gh-pages@v3
3439
with:
3540
github_token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/build-docs.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)