Skip to content

Commit 4b25c72

Browse files
committed
ci: deploy docs/ static site instead of Astro docs-site
1 parent 3491811 commit 4b25c72

1 file changed

Lines changed: 7 additions & 18 deletions

File tree

.github/workflows/deploy-docs.yml

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,35 @@
11
name: Deploy Docs to GitHub Pages
22

33
on:
4-
# Rebuild when the docs site or this workflow changes on main.
54
push:
65
branches: [main]
76
paths:
8-
- "docs-site/**"
7+
- "docs/**"
98
- ".github/workflows/deploy-docs.yml"
10-
# Allow manual runs from the Actions tab.
119
workflow_dispatch:
1210

13-
# Least-privilege token needed to publish to GitHub Pages.
1411
permissions:
1512
contents: read
1613
pages: write
1714
id-token: write
1815

19-
# Never run two Pages deploys at once; let an in-flight deploy finish.
2016
concurrency:
2117
group: pages
2218
cancel-in-progress: false
2319

2420
jobs:
25-
build:
26-
runs-on: ubuntu-latest
27-
steps:
28-
- name: Checkout
29-
uses: actions/checkout@v7
30-
- name: Build with Astro
31-
uses: withastro/action@v3
32-
with:
33-
path: ./docs-site
34-
node-version: 22 # Astro 6 requires Node >= 22.12.0 (the action defaults to 20)
35-
package-manager: bun@latest
36-
3721
deploy:
38-
needs: build
3922
runs-on: ubuntu-latest
4023
environment:
4124
name: github-pages
4225
url: ${{ steps.deployment.outputs.page_url }}
4326
steps:
27+
- name: Checkout
28+
uses: actions/checkout@v7
29+
- name: Upload Pages artifact
30+
uses: actions/upload-pages-artifact@v3
31+
with:
32+
path: docs
4433
- name: Deploy to GitHub Pages
4534
id: deployment
4635
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)