Skip to content

Commit

Permalink
Try to fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Makkkkus committed Apr 3, 2024
1 parent e7a9a34 commit 880a981
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,9 @@ on:
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -29,16 +24,18 @@ jobs:
run: npm install
- name: build
env:
BASE_PATH: '/${{ github.event.repository.name }}'
BASE_PATH: '/${{github.event.repository.name}}'
run: |
npm run build
- name: Upload Artifacts
uses: actions/upload-pages-artifact@v3
with:
path: 'build/'

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
url: ${{steps.deployment.outputs.page_url}}
runs-on: ubuntu-latest
needs: build
steps:
Expand Down
4 changes: 2 additions & 2 deletions svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ const config = {
kit: {
adapter: adapter({
fallback: '404.html',
pages: './_site',
assets: './_site'
pages: './build',
assets: './build'
}),
paths: {
base: process.argv.includes('dev') ? '' : process.env.BASE_PATH
Expand Down

0 comments on commit 880a981

Please sign in to comment.