Skip to content

Commit 91602d7

Browse files
committed
chore: set up github workflow
1 parent a6ada99 commit 91602d7

File tree

2 files changed

+44
-2
lines changed

2 files changed

+44
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
- uses: withastro/action@v3
20+
with:
21+
path: .
22+
node-version: 22
23+
# `package-manager` option is determined by `packageManager` in `package.json`
24+
25+
deploy:
26+
needs: build
27+
runs-on: ubuntu-latest
28+
environment:
29+
name: github-pages
30+
url: ${{ steps.deployment.outputs.page_url }}
31+
steps:
32+
- id: deployment
33+
uses: actions/deploy-pages@v4

astro.config.mjs

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
// @ts-check
22
import { defineConfig } from "astro/config";
33

4-
// https://astro.build/config
5-
export default defineConfig({});
4+
export default defineConfig({
5+
site: "https://gocon.github.io",
6+
base: "/2025",
7+
i18n: {
8+
defaultLocale: "ja",
9+
locales: ["ja"],
10+
routing: {
11+
prefixDefaultLocale: false,
12+
},
13+
},
14+
});

0 commit comments

Comments
 (0)