-
Notifications
You must be signed in to change notification settings - Fork 39
48 lines (43 loc) · 1.13 KB
/
extensions-asciidocs.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
47
48
name: AsciiDoc Build
on:
push:
branches: [ "master", "main" ]
pull_request:
branches: [ "master", "main" ]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Update ubuntu
run:
sudo apt-get update
- name: load dependencies
run:
sudo apt-get install -y pandoc asciidoctor asciidoc-common wkhtmltopdf
- name: Build docs
working-directory: extension-definition-specifications
run:
sh ../scripts/build_asciidoc.sh
- uses: actions/upload-artifact@v3
with:
name: extensions
path: temp/*
- name: Setup Pages
id: pages
if: github.ref == 'refs/heads/main'
uses: actions/configure-pages@v3
- name: Upload Pages
uses: actions/upload-pages-artifact@v2
if: github.ref == 'refs/heads/main'
with:
path: '_site'
- name: Deploy Pages
id: deployment
if: github.ref == 'refs/heads/main'
uses: actions/deploy-pages@v2