Skip to content

Commit 241add9

Browse files
author
github-actions[bot]
committed
Update github action
1 parent 977748f commit 241add9

File tree

3 files changed

+22
-11
lines changed

3 files changed

+22
-11
lines changed

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,7 @@ indent_size = 4
3737
[*.{js,ts,jsx,tsx}]
3838
indent_style = space
3939
indent_size = 4
40+
41+
[*.{yml,yaml}]
42+
indent_style = space
43+
indent_size = 2

.github/workflows/gh-pages.yml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
name: Deploy to GitHub Pages
2+
23
on:
34
workflow_dispatch:
45
push:
56
branches:
67
- website
8+
79
jobs:
810
build:
911
runs-on: ubuntu-latest
@@ -12,31 +14,32 @@ jobs:
1214
with:
1315
ref: website
1416
- run: corepack enable
17+
1518
- uses: actions/setup-node@v4
1619
with:
1720
node-version: "20"
18-
# Pick your own package manager and build script
1921
- run: npm install
20-
- run: npx nuxt build --preset github_pages
22+
- run: npm run generate
23+
2124
- name: Upload artifact
2225
uses: actions/upload-pages-artifact@v3
2326
with:
24-
path: ./.output/public
25-
# Deployment job
27+
path: .output/public
28+
29+
2630
deploy:
27-
# Add a dependency to the build job
2831
needs: build
29-
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
32+
3033
permissions:
31-
pages: write # to deploy to Pages
32-
id-token: write # to verify the deployment originates from an appropriate source
33-
# Deploy to the github_pages environment
34+
pages: write
35+
id-token: write
36+
3437
environment:
3538
name: github_pages
3639
url: ${{ steps.deployment.outputs.page_url }}
37-
# Specify runner + deployment step
40+
3841
runs-on: ubuntu-latest
3942
steps:
4043
- name: Deploy to GitHub Pages
4144
id: deployment
42-
uses: actions/deploy-pages@v4
45+
uses: actions/deploy-pages@v4

nuxt.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ export default defineNuxtConfig({
4848
modules: [
4949
'@morev/vue-transitions/nuxt',
5050
],
51+
target: 'static',
52+
router: {
53+
base: '/Gogh/'
54+
}
5155
devtools: { enabled: true },
5256
compatibilityDate: '2024-04-03'
5357
})

0 commit comments

Comments
 (0)