Skip to content

Commit 478615b

Browse files
authored
Merge pull request #3 from nash-io/ch/github-pages-action
CI: Github Pages deploy
2 parents 14b6dfc + 7aee426 commit 478615b

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# https://github.com/actions/setup-node
2-
name: Node.js CI
2+
name: Build and test
33

44
on: [push]
55

66
jobs:
7-
build:
7+
build_and_test:
88
runs-on: ubuntu-latest
99

1010
steps:
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Using https://github.com/marketplace/actions/deploy-to-github-pages
2+
# See also https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#onpushpull_requestbranchestags
3+
name: Deploy to Github pages
4+
5+
on:
6+
push:
7+
tags:
8+
- v*
9+
10+
jobs:
11+
deploy_pages:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
- uses: actions/setup-node@v2-beta
17+
with:
18+
node-version: '10'
19+
- run: yarn install --frozen-lockfile
20+
- run: yarn doc
21+
- name: Deploy docs 🚀
22+
uses: JamesIves/github-pages-deploy-action@releases/v3
23+
with:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
BRANCH: gh-pages # The branch the action should deploy to.
26+
FOLDER: docs # The folder the action should deploy.

0 commit comments

Comments
 (0)