Skip to content

Commit 71bb48d

Browse files
committed
Modified deploy again
1 parent 184cdbf commit 71bb48d

3 files changed

Lines changed: 38 additions & 38 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Deploy to GitHub Pages
22

33
on:
44
push:
5-
branches: 'main'
5+
branches: "main"
66

77
jobs:
88
build_site:
@@ -20,37 +20,37 @@ jobs:
2020
- name: Install Node.js
2121
uses: actions/setup-node@v4
2222
with:
23-
node-version: 20
24-
cache: npm
23+
node-version: 20
24+
cache: npm
2525

26-
- name: Install dependencies
27-
run: npm install
26+
- name: Install dependencies
27+
run: npm install
2828

29-
- name: build
30-
env:
31-
BASE_PATH: '/${{ github.event.repository.name }}'
32-
run: |
33-
npm run build
29+
- name: build
30+
env:
31+
BASE_PATH: "/${{ github.event.repository.name }}"
32+
run: |
33+
npm run build
3434
35-
- name: Upload Artifacts
36-
uses: actions/upload-pages-artifact@v3
37-
with:
38-
# this should match the `pages` option in your adapter-static options
39-
path: 'build/'
35+
- name: Upload Artifacts
36+
uses: actions/upload-pages-artifact@v3
37+
with:
38+
# this should match the `pages` option in your adapter-static options
39+
path: "build/"
4040

4141
deploy:
42-
needs: build_site
43-
runs-on: ubuntu-latest
42+
needs: build_site
43+
runs-on: ubuntu-latest
4444

45-
permissions:
46-
pages: write
47-
id-token: write
45+
permissions:
46+
pages: write
47+
id-token: write
4848

49-
environment:
50-
name: github-pages
51-
url: ${{ steps.deployment.outputs.page_url }}
49+
environment:
50+
name: github-pages
51+
url: ${{ steps.deployment.outputs.page_url }}
5252

53-
steps:
54-
- name: Deploy
55-
id: deployment
56-
uses: actions/deploy-pages@v4
53+
steps:
54+
- name: Deploy
55+
id: deployment
56+
uses: actions/deploy-pages@v4

package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

svelte.config.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ const config = {
66
preprocess: [vitePreprocess()],
77
kit: {
88
adapter: adapter({
9-
pages: 'build',
10-
assets: 'build',
11-
fallback: '404.html',
9+
pages: "build",
10+
assets: "build",
11+
fallback: "404.html",
1212
precompress: false,
13-
strict: true
13+
strict: true,
1414
}),
1515
paths: {
16-
base: process.env.BASE_PATH
17-
}
16+
base: process.env.BASE_PATH,
17+
},
1818
},
1919
};
2020

0 commit comments

Comments
 (0)