File tree Expand file tree Collapse file tree 2 files changed +42
-1
lines changed Expand file tree Collapse file tree 2 files changed +42
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy a Preview Site
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - main
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@v4
13+ - uses : actions/setup-node@v4
14+ with :
15+ node-version : " latest"
16+ - run : npm install -g pnpm
17+ - run : pnpm install
18+ - run : pnpm run generate
19+ - run : |
20+ mkdir -p dist/branches/${{ github.head_ref }}
21+ mv .output/public/* dist/branches/${{ github.head_ref }}
22+ - uses : actions/upload-pages-artifact@v3
23+ with :
24+ name : " Project Documentation - Branch (${{ github.head_ref }})"
25+ path : " dist"
26+ deploy :
27+ needs : build
28+ permissions :
29+ pages : write
30+ id-token : write
31+ environment :
32+ name : github-pages
33+ url : ${{ steps.deployment.outputs.page_url }}
34+ runs-on : ubuntu-latest
35+ steps :
36+ - name : Deploy to GitHub Pages
37+ id : deployment
38+ uses : actions/deploy-pages@v4
39+ with :
40+ artifact_name : " Project Documentation - Branch (${{ github.head_ref }})"
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ export default defineNuxtConfig({
55 compatibilityDate : "2024-04-03" ,
66 css : [ "~/assets/css/main.postcss" ] ,
77 devtools : { enabled : true } ,
8+ ssr : false ,
89 modules : [
910 "nuxt-lucide-icons" ,
1011 "@nuxt/content" ,
@@ -26,4 +27,4 @@ export default defineNuxtConfig({
2627 linkExactActiveClass : "active" ,
2728 } ,
2829 } ,
29- } ) ;
30+ } ) ;
You can’t perform that action at this time.
0 commit comments