Skip to content

Commit 7acbed3

Browse files
authored
Merge pull request #2 from sandialabs/1-add-cicd-testing
Add Documentation Portal
2 parents 7249057 + 929d4a8 commit 7acbed3

File tree

1 file changed

+69
-0
lines changed

1 file changed

+69
-0
lines changed

.github/workflows/docs.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# Build and deploying a Sphinx site to GitHub Pages
2+
name: Deploy Org Mode site to Pages
3+
4+
on:
5+
# Runs on pushes targeting the default branch
6+
push:
7+
branches: ["main"]
8+
9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
11+
12+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13+
permissions:
14+
contents: read
15+
pages: write
16+
id-token: write
17+
18+
# Allow one concurrent deployment
19+
concurrency:
20+
group: "pages"
21+
cancel-in-progress: true
22+
23+
# Default to bash
24+
defaults:
25+
run:
26+
shell: bash
27+
28+
jobs:
29+
# Build job
30+
build:
31+
runs-on: ubuntu-24.04
32+
steps:
33+
- name: Install Essential Build Tools
34+
run: sudo apt -y install build-essential
35+
- name: Install Emacs
36+
run: sudo apt -y install emacs-nox11
37+
- name: Install TeXLive
38+
run: sudo apt -y install texlive
39+
- name: Checkout
40+
uses: actions/checkout@v3
41+
with:
42+
submodules: recursive
43+
- name: Setup Pages
44+
id: pages
45+
uses: actions/configure-pages@v3
46+
- name: Build with Emacs/Org
47+
run: make clean doc install-doc
48+
- name: Gather artifacts A
49+
run: mkdir public
50+
- name: Gather artifacts B
51+
run: cp -a doc/index.html public/
52+
- name: Gather artifacts C
53+
run: cp -a _install/share public/
54+
- name: Upload artifact
55+
uses: actions/upload-pages-artifact@v1
56+
with:
57+
path: ./public
58+
59+
# Deployment job
60+
deploy:
61+
environment:
62+
name: github-pages
63+
url: ${{ steps.deployment.outputs.page_url }}
64+
runs-on: ubuntu-24.04
65+
needs: build
66+
steps:
67+
- name: Deploy to GitHub Pages
68+
id: deployment
69+
uses: actions/deploy-pages@v1

0 commit comments

Comments
 (0)