We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2a7afb commit 3df2b92Copy full SHA for 3df2b92
.github/workflows/publishwebsite.yml
@@ -0,0 +1,31 @@
1
+name: Publish Website
2
+
3
+on:
4
+ push:
5
+ branches: # triggers on any push to master
6
+ - master
7
8
+jobs:
9
+ build-deploy:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v1
13
+ - run: node --version
14
+ - name: Cache node modules
15
+ uses: actions/cache@v1
16
+ with:
17
+ path: ~/.npm
18
+ key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
19
+ restore-keys: |
20
+ ${{ runner.os }}-npm-
21
+ - name: Install dependencies
22
+ run: npm ci
23
+ - name: Test
24
+ run: npm run test --if-present
25
+ - name: Build
26
+ run: npm run build --if-present
27
+ - name: Deploy
28
+ uses: peaceiris/actions-gh-pages@v3
29
30
+ github_token: ${{ secrets.GITHUB_TOKEN }}
31
+ publish_dir: ./dist
0 commit comments