Skip to content

Commit a6b8f5e

Browse files
updated
1 parent dc91fae commit a6b8f5e

1 file changed

Lines changed: 5 additions & 16 deletions

File tree

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Deploy Sphinx to Netlify
1+
name: Deploy Docs to Netlify
22

33
on:
44
push:
@@ -16,25 +16,14 @@ jobs:
1616
steps:
1717
- name: Checkout code
1818
uses: actions/checkout@v6
19-
with:
20-
fetch-depth: 0
2119

2220
- name: Setup Python
2321
uses: actions/setup-python@v6
2422
with:
2523
python-version: '3.12'
26-
cache: pip
27-
cache-dependency-path: requirements-docs.txt
28-
29-
- name: Install dependencies
30-
run: pip install -r requirements-docs.txt
3124

32-
- name: Generate Sphinx site
33-
run: |
34-
bash scripts/build_site.sh
35-
sphinx-build -b html docs site
36-
env:
37-
GOOGLE_ANALYTICS_ID: ${{ secrets.GOOGLE_ANALYTICS_ID }}
25+
- name: Generate docs
26+
run: bash scripts/build_site.sh
3827

3928
- name: Setup Node.js (for Netlify CLI)
4029
uses: actions/setup-node@v6
@@ -47,15 +36,15 @@ jobs:
4736
# Deploy preview for Pull Requests
4837
- name: Deploy preview to Netlify
4938
if: github.event_name == 'pull_request'
50-
run: netlify deploy --dir=site --message="PR ${{ github.event.number }} - Run ${{ github.run_number }}"
39+
run: netlify deploy --dir=docs --message="PR ${{ github.event.number }} - Run ${{ github.run_number }}"
5140
env:
5241
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
5342
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
5443

5544
# Deploy to Production for Main branch pushes
5645
- name: Deploy to Netlify Production
5746
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
58-
run: netlify deploy --prod --dir=site --message="Deploy Main - Run ${{ github.run_number }}"
47+
run: netlify deploy --prod --dir=docs --message="Deploy Main - Run ${{ github.run_number }}"
5948
env:
6049
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
6150
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}

0 commit comments

Comments
 (0)