Skip to content

Commit

Permalink
chore: add gh pages base path
Browse files Browse the repository at this point in the history
  • Loading branch information
openscript committed Oct 15, 2023
1 parent 4d422e3 commit 4036b9b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ jobs:

- name: Build
run: pnpm build
env:
BASE_PATH: ${{ steps.pages.outputs.base_path }}

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
Expand Down
1 change: 0 additions & 1 deletion apps/docs/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,5 @@ export default defineConfig({
],
}),
],
base: '/docs/',
outDir: '../../dist/docs'
});
2 changes: 1 addition & 1 deletion apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"build": "astro build",
"build": "astro build --base $BASE_PATH/docs/",
"preview": "astro preview",
"astro": "astro"
},
Expand Down
2 changes: 1 addition & 1 deletion apps/slides/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.1",
"private": true,
"scripts": {
"build": "slidev build --out ../../dist/slides --base /slides",
"build": "slidev build --out ../../dist/slides --base $BASE_PATH/slides",
"dev": "slidev",
"export": "slidev export"
},
Expand Down

0 comments on commit 4036b9b

Please sign in to comment.