-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 1.04 KB
/
deploy_specifications.yaml
File metadata and controls
41 lines (34 loc) · 1.04 KB
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
name: Deploy Specifications
on:
push:
branches: [main]
paths:
- 'specifications/**'
workflow_dispatch:
permissions:
contents: write
jobs:
publish-gh-pages:
runs-on:
- ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install asciidoctor
run: |
sudo apt install -y asciidoctor
- name: Append open issues to AsciiDoc files
run: |
cd specifications
ls chapters/*.adoc | xargs -i .scripts/append_oppen_issues.py {} ${{ github.repository }}
- name: Generate publications
run: |
cd specifications
asciidoctor requirements_specifications.adoc -D publications -o index.html
cp -r images publications
- name: Push gh-pages branch
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./specifications/publications
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'