-
-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (29 loc) · 803 Bytes
/
Copy pathdemo-deploy.yml
File metadata and controls
36 lines (29 loc) · 803 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
31
32
33
34
35
36
name: Demo deploy
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Prepare
working-directory: .
run: |
npm install
npm run build
cd example && npm install
- name: Deploy with gh-pages
working-directory: ./example
run: |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
npm run deploy -- -u "bit-about <bot@bit-about.tools>"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}