Skip to content

Commit 3c14c6e

Browse files
committed
fix: deploy
1 parent 4927e95 commit 3c14c6e

1 file changed

Lines changed: 21 additions & 33 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 21 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,40 @@
1-
name: Deploy Documentation
2-
1+
name: Deploy
32
on:
4-
push:
5-
branches: [ main ]
6-
paths:
7-
- 'docs/**'
8-
- '.github/workflows/docs.yml'
93
workflow_dispatch:
10-
11-
permissions:
12-
contents: read
13-
pages: write
14-
id-token: write
15-
4+
push:
5+
branches:
6+
- main
167
jobs:
178
build:
189
runs-on: ubuntu-latest
1910
steps:
2011
- uses: actions/checkout@v4
21-
22-
- name: Setup Node.js
23-
uses: actions/setup-node@v4
24-
with:
25-
node-version: '22'
26-
27-
- name: Setup pnpm
28-
uses: pnpm/action-setup@v3
12+
- run: corepack enable
13+
- uses: actions/setup-node@v4
2914
with:
30-
version: '9.15.0'
31-
32-
- name: Install dependencies
33-
run: pnpm install
34-
35-
- name: Build documentation
36-
run: pnpm docs:build
37-
15+
node-version: "20"
16+
# Pick your own package manager and build script
17+
- run: npm install
18+
- run: npx nuxt build --preset github_pages
3819
- name: Upload artifact
3920
uses: actions/upload-pages-artifact@v3
4021
with:
41-
path: docs/.vitepress/dist
42-
22+
path: ./.output/public
23+
# Deployment job
4324
deploy:
25+
# Add a dependency to the build job
26+
needs: build
27+
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
28+
permissions:
29+
pages: write # to deploy to Pages
30+
id-token: write # to verify the deployment originates from an appropriate source
31+
# Deploy to the github_pages environment
4432
environment:
4533
name: github-pages
4634
url: ${{ steps.deployment.outputs.page_url }}
35+
# Specify runner + deployment step
4736
runs-on: ubuntu-latest
48-
needs: build
4937
steps:
5038
- name: Deploy to GitHub Pages
5139
id: deployment
52-
uses: actions/deploy-pages@v4
40+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)