-
Notifications
You must be signed in to change notification settings - Fork 7
42 lines (33 loc) · 1.14 KB
/
cd-config.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
# Workflow for processing and publishing bikeshed documents to github pages
name: Publish documents
on:
push:
# only concerned with changes in the main branch
branches: [ main ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Upgrade pip
run: python3 -m pip install --upgrade pip
- name: Install Bikeshed
run: |
python3 -m pip install --upgrade bikeshed
bikeshed update
- name: Generate HTML
run: for bsdoc in ./*.bs; do bikeshed spec --gh-token=${{ secrets.GITHUB_TOKEN }} $bsdoc; done
- name: Generate SVG
run: for diagram in ./*.mmd; do docker run --rm -v "$PWD:/data" minlag/mermaid-cli -i /data/$diagram; done
- name: Keep files that get published
run: rm -rf .gitignore .github *.bs
- name: Publish to GitHub pages
uses: peaceiris/actions-gh-pages@v3
with:
publish_dir: .
personal_token: ${{ secrets.GITHUB_TOKEN }}