-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (34 loc) · 897 Bytes
/
docs-release.yml
File metadata and controls
41 lines (34 loc) · 897 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
37
38
39
40
41
name: Docs Release
on:
push:
branches: [source]
paths:
- src/**
pull_request:
branches: [source]
paths:
- src/**
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js 11.15.0
uses: actions/setup-node@v2
with:
node-version: "11.15.0"
cache: "yarn"
- name: Install
run: yarn --frozen-lockfile --ignore-engines
- name: Build
run: |
CI=false && npm run build
npm run build-index
- name: Release to GitHub Pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
yarn deploy -- -u "github-actions-bot <support+actions@github.com>"