Skip to content

Commit bb62e9a

Browse files
committed
feat: update site configuration and add GitHub Pages deployment workflow
1 parent d33c509 commit bb62e9a

File tree

3 files changed

+48
-4
lines changed

3 files changed

+48
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Deploy Astro to GitHub Pages
2+
on:
3+
push:
4+
branches: [ main ]
5+
workflow_dispatch: {}
6+
permissions:
7+
contents: read
8+
pages: write
9+
id-token: write
10+
concurrency: { group: "pages", cancel-in-progress: true }
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
with: { fetch-depth: 0 } # optional, good for lastUpdated
17+
- uses: actions/setup-node@v4
18+
with: { node-version: 20 }
19+
- run: npm ci
20+
- run: npm run build
21+
- uses: actions/upload-pages-artifact@v3
22+
with: { path: ./dist }
23+
deploy:
24+
needs: build
25+
runs-on: ubuntu-latest
26+
environment:
27+
name: github-pages
28+
url: ${{ steps.deployment.outputs.page_url }}
29+
steps:
30+
- id: deployment
31+
uses: actions/deploy-pages@v4

astro.config.mjs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import starlight from '@astrojs/starlight';
33

44

55
export default defineConfig({
6-
site: 'https://ChocopieKewpie.github.io',
7-
base: '/',
6+
site: 'https://manaakiwhenua.github.io',
7+
base: '/nzlum-site/',
88
integrations: [
99
starlight({
1010
title: 'NZLUM',
@@ -13,8 +13,7 @@ export default defineConfig({
1313
favicon: '/favicon.svg',
1414
customCss: ['./src/custom.css'],
1515
social: [
16-
{ label: 'GitHub', href: 'https://github.com/ChocopieKewpie/ChocopieKewpie.github.io', icon: 'github' },
17-
{ label: 'Email', href: 'mailto:[email protected]', icon: 'email' }
16+
{ label: 'GitHub', href: 'https://github.com/manaakiwhenua/nzlum-site', icon: 'github' },
1817
],
1918
sidebar: [
2019
{ label: 'New Zealand Land Use Management (NZLUM) classification system', link: '/' },

package-lock.json

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

0 commit comments

Comments
 (0)