-
-
Notifications
You must be signed in to change notification settings - Fork 129
36 lines (34 loc) · 862 Bytes
/
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
name: Build
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
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 prod
# Deploy, limited to the master branch
- name: Deploy
if: success() && github.ref == 'refs/heads/master'
uses: peaceiris/actions-gh-pages@v3
with:
publish_dir: ./dist
github_token: ${{ secrets.GITHUB_TOKEN }}
cname: bitcoindevlist.com
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'