-
Notifications
You must be signed in to change notification settings - Fork 67
43 lines (33 loc) · 1.11 KB
/
make_docs.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: publish document
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
container: fedora:latest
steps:
- name: Install requirements
run: sudo dnf install -y git graphviz make plantuml rubygem-asciidoctor rubygem-asciidoctor-pdf rubygem-rouge
- name: Repository checkout
uses: actions/checkout@v3
- name: Move to the correct folder
run: cd $GITHUB_WORKSPACE
- name: Ensure git folder is considered safe
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Render HTML
run: make release
- name: Git add and force push to docs
run: git add -f docs
- name: Push changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: publish release
file_pattern: docs/*
add_options: '-A --force'
branch: docs # main branch is protected, make sure this one is used for GitHub pages
# the following options are necessary to forcefully overwrite each time the branch
skip_fetch: true
skip_checkout: true
push_options: '--force'