-
Notifications
You must be signed in to change notification settings - Fork 27
79 lines (68 loc) · 1.92 KB
/
Copy pathdocs.yml
File metadata and controls
79 lines (68 loc) · 1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Build documentation
on:
push:
branches:
- main
workflow_dispatch:
pull_request:
permissions:
contents: read
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- id: checkout
name: Checkout
uses: actions/checkout@v7
- id: install-uv
name: Install uv
uses: astral-sh/setup-uv@v8.3.2
with:
version: "0.11.29"
enable-cache: true
- id: install-python
name: Install Python
run: uv python install 3.13
- id: install-python-dependencies
name: Install Python dependencies
run: uv sync --all-groups --locked
shell: bash
- id: build-sphinx-documentation
name: Build Sphinx documentation
run: make build
shell: bash
- id: upload-release-candidate
name: Upload release candidate
uses: actions/upload-artifact@v7
with:
name: release-candidate
path: docs/_build/
deploy:
name: Deploy
runs-on: ubuntu-latest
needs: build
if: ${{ github.ref_name == 'main' }}
steps:
- name: Download release candidate
uses: actions/download-artifact@v8
with:
name: release-candidate
path: ./docs/
- id: configure-aws
name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v6
with:
aws-access-key-id: ${{ secrets.PALEWIRE_DOCS_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.PALEWIRE_DOCS_AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- id: upload-to-s3
name: Upload documentation to Amazon S3
uses: datadesk/delivery-deploy-action@v1
with:
bucket: ${{ secrets.PALEWIRE_DOCS_AWS_BUCKET }}
base-path: first-python-notebook
dir: ./docs/
should-cache: false
use-accelerate-endpoint: false
public: true