Skip to content

Commit 0d81c4d

Browse files
committed
gha: build gh-pages
1 parent fca3a36 commit 0d81c4d

1 file changed

Lines changed: 70 additions & 0 deletions

File tree

.github/workflows/gh-pages.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: GH pages
2+
3+
on: [push, pull_request, workflow_dispatch]
4+
5+
env:
6+
SETUP_PATH: .ci-local:.ci
7+
8+
jobs:
9+
generate:
10+
runs-on: ubuntu-latest
11+
env:
12+
MODULES: "pvxs"
13+
BASE: "7.0"
14+
BASE_RECURSIVE: NO
15+
PVXS: master
16+
PVXS_REPOOWNER: epics-base
17+
CMP: gcc
18+
BCFG: default
19+
_PVXS_ABORT_ON_CRIT: 1
20+
PVXS_LOG: pvxs.*=WARN
21+
22+
steps:
23+
- uses: actions/checkout@v4
24+
with:
25+
fetch-depth: "0"
26+
submodules: true
27+
- name: "apt-get install"
28+
run: |
29+
sudo apt-get update
30+
sudo apt-get -y install libreadline-dev libevent-dev \
31+
python3-dev python3-numpy python3-ply python3-nose2 cython3 \
32+
python3-qtpy \
33+
python3-sphinx python3-sphinx-argparse python3-breathe inkscape
34+
35+
- name: Prepare and compile dependencies
36+
run: python .ci/cue.py prepare
37+
38+
- name: headers
39+
run: python .ci/cue.py build sphinx
40+
41+
- name: nojekyll
42+
run: touch documentation/_build/html/.nojekyll
43+
44+
- name: Upload gh-pages preview
45+
id: ghpages
46+
uses: actions/upload-pages-artifact@v3
47+
with:
48+
retention-days: 7
49+
path: documentation/_build/html/
50+
51+
52+
publish:
53+
runs-on: ubuntu-latest
54+
55+
if: github.ref=='refs/heads/master'
56+
needs: generate
57+
58+
permissions:
59+
contents: read
60+
pages: write
61+
id-token: write
62+
63+
environment:
64+
name: github-pages
65+
url: ${{ steps.ghpages.outputs.page_url }}
66+
67+
steps:
68+
- name: Deploy to GitHub Pages
69+
id: deployment
70+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)