Skip to content

Commit 2d945d8

Browse files
committed
Use official Astro GitHub Action and fix base path
1 parent bada861 commit 2d945d8

File tree

2 files changed

+7
-18
lines changed

2 files changed

+7
-18
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,36 +20,25 @@ jobs:
2020
build:
2121
runs-on: ubuntu-latest
2222
steps:
23-
- name: Checkout
23+
- name: Checkout your repository using git
2424
uses: actions/checkout@v4
2525
with:
2626
submodules: recursive
2727
fetch-depth: 0
2828

29-
- name: Setup Bun
30-
uses: oven-sh/setup-bun@v2
29+
- name: Install, build, and upload your site
30+
uses: withastro/action@v3
3131
with:
32-
bun-version: latest
33-
34-
- name: Install dependencies
35-
run: bun install
36-
37-
- name: Build
38-
run: bun run build
32+
package-manager: bun@latest
3933
env:
4034
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
4135

42-
- name: Upload artifact
43-
uses: actions/upload-pages-artifact@v3
44-
with:
45-
path: ./dist
46-
4736
deploy:
37+
needs: build
38+
runs-on: ubuntu-latest
4839
environment:
4940
name: github-pages
5041
url: ${{ steps.deployment.outputs.page_url }}
51-
runs-on: ubuntu-latest
52-
needs: build
5342
steps:
5443
- name: Deploy to GitHub Pages
5544
id: deployment

astro.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import markdoc from '@astrojs/markdoc';
1111
// https://astro.build/config
1212
export default defineConfig({
1313
site: 'https://zig-index.github.io/website',
14-
base: '/website/',
14+
base: '/website',
1515
output: 'static',
1616

1717
integrations: [

0 commit comments

Comments
 (0)