Skip to content

Commit dda2db4

Browse files
ci: initial ci script for publish
1 parent 74b2956 commit dda2db4

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/docs_publish.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Publish Documentation
2+
3+
on:
4+
push:
5+
branches: main
6+
7+
permissions:
8+
contents: write
9+
10+
jobs:
11+
deploy:
12+
runs-on: ubuntu-24.04
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Configure Git Credentials
17+
run: |
18+
git config user.name github-actions[bot]
19+
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
20+
21+
- name: Install extra dependencies for a python install
22+
run: |
23+
sudo apt-get update
24+
sudo apt -y install --no-install-recommends liblzma-dev libbz2-dev libreadline-dev
25+
26+
- name: Install asdf cli
27+
uses: asdf-vm/actions/setup@v4
28+
29+
- name: Install software through asdf
30+
uses: asdf-vm/actions/install@v4
31+
32+
- name: reshim asdf
33+
run: asdf reshim
34+
35+
- name: ensure poetry using desired python version
36+
run: poetry env use $(asdf which python)
37+
38+
- run: mkdocs gh-deploy --force

0 commit comments

Comments
 (0)