-
Notifications
You must be signed in to change notification settings - Fork 68
43 lines (41 loc) · 1.17 KB
/
build.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
37
38
39
40
41
42
43
name: Build
on:
# Run the build for pushes and pull requests targeting master
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
# Checkout and setup
- name: Checkout
uses: actions/checkout@v3
- name: Setup
uses: actions/setup-node@v3
with:
node-version: 16
# Install and build
- name: Install
run: npm ci
- name: Build
run: npm run build
# Deploy, limited to the master branch
- name: Deploy
if: success() && github.ref == 'refs/heads/master'
uses: peaceiris/actions-gh-pages@v3
with:
publish_dir: ./docs/.vuepress/dist
github_token: ${{ secrets.GITHUB_TOKEN }}
cname: bitcoindevkit.org
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
# Run linkcheck, propagate linkcheck failure through grep pipe
- name: Linkcheck
run: set -o pipefail; npm run linkcheck 2>/dev/null | grep "Getting links from\|BROKEN"
continue-on-error: true