mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-09 06:07:53 -06:00
fix(ci): update deployment path and add Vike build step
- Add web frontend build step to compile Vike site - Change artifact upload path from ./dist/ to ./web/dist/ - Install web dependencies before building frontend
This commit is contained in:
12
.github/workflows/build.yaml
vendored
12
.github/workflows/build.yaml
vendored
@@ -173,11 +173,21 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
- name: Install web dependencies
|
||||||
|
shell: bash
|
||||||
|
run: bun install
|
||||||
|
working-directory: web
|
||||||
|
|
||||||
|
- name: Build web frontend
|
||||||
|
shell: bash
|
||||||
|
run: bun run build
|
||||||
|
working-directory: web
|
||||||
|
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
uses: actions/upload-pages-artifact@v4
|
uses: actions/upload-pages-artifact@v4
|
||||||
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
|
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
|
||||||
with:
|
with:
|
||||||
path: "./dist/"
|
path: "./web/dist/"
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
|
|||||||
Reference in New Issue
Block a user