-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 1.02 KB
/
gh-pages.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
name: GitHub Pages
on:
push:
branches:
- main # Set a branch name to trigger deployment
pull_request:
workflow_dispatch: {}
jobs:
deploy:
runs-on: ubuntu-22.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
env:
DTC_HEADLES: true
steps:
- uses: actions/checkout@v3
- uses: actions/setup-ruby@v1
- name: Setup docToolchain
run: chmod +x dtcw
- name: Migrate Markdown based ADRs from adr-tools to AsciiDoc
run: ./dtcw exportMarkdown && cp ./build/adrs/*.adoc ./documentation/adrs/
- name: Generate HTML site
run: ./dtcw exportStructurizr generateHTML
- name: Copy documentation to public
run: cp -r ./build/html5 ./public && mv ./public/highly-scalable-image-sharing-platform.html ./public/index.html
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public