-
Notifications
You must be signed in to change notification settings - Fork 125
36 lines (31 loc) · 973 Bytes
/
production.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
36
name: Production workflow
on:
push:
branches:
- main
paths-ignore:
- README.md
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: '12.22.1'
- run: |
sed -i 's/VSSUECLIENTID/${{ secrets.VSSUECLIENTID }}/g' docs/.vuepress/config.js
sed -i 's/VSSUECLIENTSECRET/${{ secrets.VSSUECLIENTSECRET }}/g' docs/.vuepress/config.js
yarn install
yarn docs:build
cp LICENSE docs/.vuepress/dist/
cp robots.txt docs/.vuepress/dist/
- name: Deploy to netlify
uses: netlify/actions/cli@master
env:
NETLIFY_SITE_ID: ${{ secrets.PROD_NETLIFY_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
with:
args: deploy --dir=docs/.vuepress/dist --prod