Skip to content

Commit 58aa10b

Browse files
author
allburov
committed
Build pages
1 parent 5d3d3bf commit 58aa10b

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

.github/workflows/pages.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Deploy Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- core
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
defaults:
12+
run:
13+
working-directory: docs/site
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v2
18+
with:
19+
persist-credentials: false
20+
21+
- name: Install dependencies
22+
run: |
23+
npm install
24+
25+
- name: Build
26+
run: |
27+
npm run build
28+
29+
- name: Upload folder
30+
uses: actions/upload-artifact@v2
31+
with:
32+
name: public
33+
path: public
34+
35+
deploy-github-pages:
36+
needs: build
37+
runs-on: ubuntu-latest
38+
steps:
39+
- name: Checkout
40+
uses: actions/checkout@v2
41+
with:
42+
persist-credentials: false
43+
44+
- name: Download folder
45+
uses: actions/download-artifact@v2
46+
with:
47+
name: public
48+
path: public
49+
50+
- name: File list
51+
run: |
52+
ls -la && ls -la public
53+
54+
- name: Deploy
55+
uses: JamesIves/[email protected]
56+
with:
57+
token: ${{ secrets.GITHUB_TOKEN }}
58+
BRANCH: gh-pages
59+
FOLDER: public
60+
CLEAN: true

0 commit comments

Comments
 (0)