-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (43 loc) · 1.32 KB
/
docs.yml
File metadata and controls
54 lines (43 loc) · 1.32 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
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Build and Deploy Architecture Docs
on:
push:
# 1. ADD YOUR NEW BRANCH HERE
branches: ["main", "final-docs"]
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
build-and-deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
# 2. ADD THIS: Fetches all branches so the site generator can see them both
fetch-depth: 0
- name: Generate Site via Docker
run: |
mkdir -p build/site
docker run --rm -u $(id -u):$(id -g) -v ${{ github.workspace }}:/app -w /app \
ghcr.io/avisi-cloud/structurizr-site-generatr \
generate-site -w docs/diagrams/workspace.dsl \
--default-branch main \
--branches main,final-docs # 3. ADD YOUR NEW BRANCH HERE
- name: Setup GitHub Pages
uses: actions/configure-pages@v4
- name: Upload Artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'build/site'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4