Skip to content

Commit 09b5adc

Browse files
committed
ci: add output as export in next.config.mjs and update deploy workflow
1 parent 1db2e9e commit 09b5adc

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,15 @@ on:
44
push:
55
tags:
66
- 'v[0-9]+.[0-9]+.[0-9]+'
7+
schedule:
8+
- cron: '0 0 * * 1'
9+
workflow_dispatch:
710

811
jobs:
912
build-and-deploy:
10-
runs-on: ubuntu-latest
13+
runs-on: ubuntu-24.04
14+
permissions:
15+
contents: write
1116

1217
steps:
1318
- name: Checkout
@@ -25,7 +30,7 @@ jobs:
2530
run: npm run build
2631

2732
- name: Deploy
28-
uses: peaceiris/actions-gh-pages@v3
33+
uses: peaceiris/actions-gh-pages@v4
2934
with:
30-
github_token: ${{ secrets.DEPLOY_TOKEN }}
35+
github_token: ${{ secrets.GITHUB_TOKEN }}
3136
publish_dir: ./out

next.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/** @type {import('next').NextConfig} */
22
const nextConfig = {
3+
output: 'export',
34
eslint: {
45
ignoreDuringBuilds: true,
56
},

0 commit comments

Comments
 (0)