forked from KusionStack/kusionstack.io
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (28 loc) · 761 Bytes
/
deploy.yml
File metadata and controls
30 lines (28 loc) · 761 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: build-and-deploy
on:
push:
branches:
- main
pull_request:
branches:
- main
types:
- closed
jobs:
deploy:
if: (github.event_name == 'push') || github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v2
- run: npm install
- run: npm run build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3.7.3
with:
personal_token: ${{ secrets.KUSIONSTACK_BOT_TOKEN }}
external_repository: KusionStack/kusionstack.github.io
publish_dir: ./build
publish_branch: main
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'