-
Notifications
You must be signed in to change notification settings - Fork 8
38 lines (33 loc) · 1.43 KB
/
publish.yaml
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
name: Publish Docs
on:
workflow_dispatch:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
name: Asciidoctoring the docs to pretty HTML!
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Get build container
id: adocbuild
uses: avattathil/asciidoctor-action@master
with:
program: "
asciidoctor -D community/ -o getting-started.html downstream/titles/getting_started/master.adoc
&& asciidoctor -D community/ -o cost-models.html downstream/titles/using_cost_models/master.adoc
&& asciidoctor -D community/ -o using-tags.html downstream/titles/managing_cost_data_using_tags/master.adoc
&& asciidoctor -D community/ -o aws-source.html downstream/titles/adding_aws_source/master.adoc
&& asciidoctor -D community/ -o azure-source.html downstream/titles/adding_azure_source/master.adoc
&& asciidoctor -D community/ -o gcp-source.html downstream/titles/adding_gcp_source/master.adoc
&& asciidoctor -D community/ -o ocp-source.html downstream/titles/adding_ocp_source/master.adoc "
- name: Copy Image folder to community/ dir
run: sudo cp -a downstream/images/. community/images
- name: Deploy docs to ghpages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./community/