Skip to content

Commit ddca021

Browse files
committed
fix: adjust build output for deploy
1 parent 52503d5 commit ddca021

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,8 @@ jobs:
3232
- name: Verify Build Output
3333
run: |
3434
echo "Inspecting build directory..."
35-
ls -la dist/client
36-
grep -r PUBLIC_SPREADSHEET_URL dist/client || echo "PUBLIC_SPREADSHEET_URL not found in build output"
37-
38-
# Upload artifact per il deploy
39-
- name: Upload artifact
40-
uses: actions/upload-pages-artifact@v3
41-
with:
42-
path: dist/client
43-
name: github-pages-${{ github.run_id }}
44-
35+
ls -la dist
36+
grep -r PUBLIC_SPREADSHEET_URL dist || echo "PUBLIC_SPREADSHEET_URL not found in build output"
4537
deploy:
4638
needs: build
4739
runs-on: ubuntu-latest

astro.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ const whenExternalScripts = (items: (() => AstroIntegration) | (() => AstroInteg
2828
export default defineConfig({
2929
site: 'https://CodeMOOC.github.io',
3030
base: '/CodyRoby-Website/',
31+
build: {
32+
client: './',
33+
server: './dist_server',
34+
},
3135
integrations: [
3236
tailwind({
3337
applyBaseStyles: false,

0 commit comments

Comments
 (0)