-
Notifications
You must be signed in to change notification settings - Fork 180
46 lines (39 loc) · 1016 Bytes
/
docs.yml
File metadata and controls
46 lines (39 loc) · 1016 Bytes
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
name: Deploy docs
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write
id-token: write
pages: write
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
run_install: true
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
- name: Build
run: pnpm build
- name: Build & Upload (Astro)
uses: withastro/action@v3
with:
path: packages/docs
package-manager: pnpm@10.11.0+sha512.6540583f41cc5f628eb3d9773ecee802f4f9ef9923cc45b69890fb47991d4b092964694ec3a4f738a420c918a333062c8b925d312f42e4f0c263eb603551f977
- name: Deploy
id: deployment
uses: actions/deploy-pages@v4