Skip to content

Commit 466a308

Browse files
Add page build and publication action. Refs #54.
Add a github actions job that will compile and generate the page directly from the markdown source.
1 parent a53a04d commit 466a308

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/publish.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Publish web
2+
on:
3+
push:
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v4
11+
12+
- name: Setup Pages
13+
id: pages
14+
uses: actions/configure-pages@v3
15+
16+
- name: Install pandoc
17+
run: |
18+
sudo apt-get install --yes pandoc
19+
20+
- name: Build with Pandoc
21+
run: |
22+
make
23+
24+
- name: Upload artifact
25+
uses: actions/upload-pages-artifact@v2
26+
27+
deploy:
28+
permissions:
29+
contents: read
30+
pages: write
31+
id-token: write
32+
33+
runs-on: ubuntu-latest
34+
35+
needs: build
36+
37+
environment:
38+
name: github-pages
39+
url: ${{steps.deployment.outputs.page_url}}
40+
steps:
41+
- name: Deploy artifact
42+
id: deployment
43+
uses: actions/deploy-pages@v1

0 commit comments

Comments
 (0)