-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 1.07 KB
/
deploy.yml
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
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Deploy
on:
# push:
# branches: [ master ]
release:
types: [ prereleased, released ]
#Avoiding separate deploy job since that uses artifact storage, which is a pain to cleanup.
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: Use Node.js 12
uses: actions/setup-node@v1
with:
node-version: 12.x
- run: |
yarn install --frozen-lockfile
yarn run test
yarn install --production --frozen-lockfile
yarn run build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@3.6.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: build
CLEAN: true # Automatically remove deleted files from the deploy branch