-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (37 loc) · 917 Bytes
/
doc.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: Doc
on:
pull_request:
push:
paths:
- '.github/workflows/doc.yml'
- 'doc/**'
schedule:
- cron: '0 0 * * 4'
workflow_dispatch:
repository_dispatch:
types: [ doc ]
jobs:
asciidoc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build site
uses: docker://asciidoctor/docker-asciidoctor
with:
args: doc/make.sh
- name: Publish site to gh-pages (doc)
if: github.event_name != 'pull_request'
run: |
mkdir pages
cd pages
git init
cp ../.git/config ./.git/config
touch .nojekyll
mv ../doc/index.html ./
mkdir img
cp ../doc/img/icon.png ./img
git add .
git config --local user.email "push@gha"
git config --local user.name "GHA"
git commit -am "update ${{ github.sha }}"
git push -u origin +HEAD:gh-pages