Skip to content

Commit 7352bbe

Browse files
authored
Add GitHub Actions workflow for HTML publishing
1 parent 394a82e commit 7352bbe

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

.github/workflows/HTMLtest.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Publish AsciiDoc
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
8+
permissions:
9+
pages: write
10+
id-token: write
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Install Asciidoctor
20+
run: sudo apt-get update && sudo apt-get install -y asciidoctor
21+
22+
- name: Generate HTML
23+
run: |
24+
mkdir public
25+
asciidoctor \
26+
docs/FHIR_VZD_Search_Best_Practices.adoc \
27+
-o public/index.html
28+
29+
- uses: actions/upload-pages-artifact@v3
30+
with:
31+
path: public
32+
33+
deploy:
34+
needs: build
35+
runs-on: ubuntu-latest
36+
environment:
37+
name: github-pages
38+
39+
steps:
40+
- uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)