forked from redhat-documentation/supplementary-style-guide
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 944 Bytes
/
deploy-site.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
name: Build and deploy SSG website
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Extract assets
run: docker cp $(docker run --detach quay.io/redhat-docs/redhat-docs-template):/assets ./supplementary_style_guide/assets
- name: Build AsciiDoc
uses: docker://quay.io/redhat-docs/redhat-docs-template
with:
args: supplementary_style_guide/main.adoc
- name: Copy output to docs/
run: |
mkdir docs
cp -r supplementary_style_guide/images/ docs/images
cp -r supplementary_style_guide/assets/ docs/assets
mv index.html docs/
- name: Publish to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs