mirror of
https://github.com/khrysse/khrysse.github.io.git
synced 2025-06-27 14:41:54 +00:00
Update build
This commit is contained in:
parent
d2db6ed6bc
commit
421e775eb9
17
.github/workflows/deploy.yml
vendored
17
.github/workflows/deploy.yml
vendored
@ -13,12 +13,6 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
# If you're using pnpm, add this step then change the commands and cache key below to use `pnpm`
|
|
||||||
# - name: Install pnpm
|
|
||||||
# uses: pnpm/action-setup@v3
|
|
||||||
# with:
|
|
||||||
# version: 8
|
|
||||||
|
|
||||||
- name: Install Node.js
|
- name: Install Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
@ -28,14 +22,19 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm install
|
run: npm install
|
||||||
|
|
||||||
- name: build
|
- name: Build SvelteKit
|
||||||
env:
|
env:
|
||||||
PUBLIC_GITHUB_API_URL: 'https://api.github.com'
|
PUBLIC_GITHUB_API_URL: 'https://api.github.com'
|
||||||
PUBLIC_GITHUB_USERNAME: ${{ github.repository_owner }}
|
PUBLIC_GITHUB_USERNAME: ${{ github.repository_owner }}
|
||||||
|
# ➕ ajoute ici le BASE_PATH si besoin (ex : '/mon-repo')
|
||||||
|
BASE_PATH: ''
|
||||||
run: |
|
run: |
|
||||||
|
echo "PUBLIC_GITHUB_API_URL=https://api.github.com" >> .env
|
||||||
|
echo "PUBLIC_GITHUB_USERNAME=${{ github.repository_owner }}" >> .env
|
||||||
|
echo "BASE_PATH=${BASE_PATH}" >> .env
|
||||||
npm run build
|
npm run build
|
||||||
|
|
||||||
- name: Upload Artifacts
|
- name: Upload build folder
|
||||||
uses: actions/upload-pages-artifact@v3
|
uses: actions/upload-pages-artifact@v3
|
||||||
with:
|
with:
|
||||||
path: 'build/'
|
path: 'build/'
|
||||||
@ -53,6 +52,6 @@ jobs:
|
|||||||
url: ${{ steps.deployment.outputs.page_url }}
|
url: ${{ steps.deployment.outputs.page_url }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Deploy
|
- name: Deploy to GitHub Pages
|
||||||
id: deployment
|
id: deployment
|
||||||
uses: actions/deploy-pages@v4
|
uses: actions/deploy-pages@v4
|
||||||
|
@ -5,8 +5,6 @@ const config = {
|
|||||||
adapter: adapter({
|
adapter: adapter({
|
||||||
// default options are shown. On some platforms
|
// default options are shown. On some platforms
|
||||||
// these options are set automatically — see below
|
// these options are set automatically — see below
|
||||||
pages: 'build',
|
|
||||||
assets: 'build/assets',
|
|
||||||
fallback: '404.html',
|
fallback: '404.html',
|
||||||
precompress: true,
|
precompress: true,
|
||||||
strict: true
|
strict: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user