Skip to content

Commit 2522083

Browse files
committed
Initial commit to convert markdown to GitHub pages.
1 parent 35b1cb2 commit 2522083

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/publish_docs.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: 'Publish Docs Site'
2+
3+
on:
4+
push:
5+
workflow_dispatch:
6+
7+
permissions:
8+
pages: 'write'
9+
id-token: 'write'
10+
11+
jobs:
12+
build:
13+
runs-on: 'ubuntu-latest'
14+
steps:
15+
- uses: 'actions/checkout@v4'
16+
- name: 'Generate HTML from Markdown'
17+
uses: 'ldeluigi/markdown-docs@latest'
18+
with:
19+
src: 'doc'
20+
dst: 'generated'
21+
- name: 'Upload artifact'
22+
uses: 'actions/upload-pages-artifact@v3'
23+
deploy:
24+
environment:
25+
name: 'github-pages'
26+
url: '${{ steps.deployment.outputs.page_url }}'
27+
runs-on: 'ubuntu-latest'
28+
needs: 'build'
29+
steps:
30+
- name: 'Deploy to GitHub Pages'
31+
id: 'deployment'
32+
uses: 'actions/deploy-pages@v4'

0 commit comments

Comments
 (0)