-
Notifications
You must be signed in to change notification settings - Fork 62
45 lines (43 loc) · 1.2 KB
/
deploy.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
44
45
name: build
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
job1:
name: Build docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-pandoc@v1
with:
pandoc-version: '2.7.3'
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
bundler-cache: true
- run: ./bin/build
# - uses: actions/checkout@v2
# with:
# repository: handshake-org/hsd
# ref: e270b8cef3f4552c35f744d04594ebe8896d5141
# path: hsd
# - run: |
# cd hsd
# npm install -g jsdoc
# jsdoc -c jsdoc.json
# cp -r ./docs/reference ../build/docs
- name: Deploy
if: github.ref == 'refs/heads/master'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
cname: hsd-dev.org
- name: Deploy to Skynet
uses: kwypchlo/deploy-to-skynet-action@main
with:
upload-dir: ./build
github-token: ${{ secrets.GITHUB_TOKEN }}
registry-seed: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' && secrets.REGISTRY_SEED || '' }}