Skip to content

Commit c033f12

Browse files
authored
Create docs.yml
1 parent 48d9f3f commit c033f12

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/docs.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Publish documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python-version: [3.13]
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Set up Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
cache: 'pip'
23+
- name: Install dependencies
24+
run: |
25+
python3 -m pip install --upgrade pip
26+
pip install -e .
27+
cd docs
28+
- name: Build main site
29+
env:
30+
SITE_ENV: ${{ secrets.SITE_ENV }}
31+
run: |
32+
cd docs
33+
aurora build
34+
- name: rsync deployments
35+
uses: burnett01/[email protected]
36+
with:
37+
switches: -avzr
38+
path: "docs/_site/*"
39+
remote_path: ${{ secrets.PATH }}
40+
remote_host: ${{ secrets.SERVER_HOST }}
41+
remote_user: ${{ secrets.SERVER_USERNAME }}
42+
remote_key: ${{ secrets.KEY }}

0 commit comments

Comments
 (0)