-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (36 loc) · 1.14 KB
/
ascii-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
44
45
46
name: BuildDocuments
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
container: asciidoctor/docker-asciidoctor
steps:
- name: install git
run: apk add --update git
- name: install asciidoctor
run: gem install asciidoctor-pdf
- name: checkout
uses: actions/checkout@main
- name: build manuals
run: |
asciidoctor-pdf "User and Technical Manual.adoc"
working-directory: manual
- name: move to generated-docs folder
run: |
mkdir -p generated-docs
mv "manual/User and Technical Manual.pdf" generated-docs/
- name: Git stuff
run: |
git config --global --add safe.directory $PWD
git config --local user.email "gavin@aqualyd.nz"
git config --local user.name "aqualyd-github-bot"
git status
git add "generated-docs/User and Technical Manual.pdf"
git commit --allow-empty -m "Push triggered asciidoc build"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}