Skip to content

Commit 82bd203

Browse files
committed
build: deploy to github pages
1 parent 087c8ed commit 82bd203

File tree

6 files changed

+48
-16
lines changed

6 files changed

+48
-16
lines changed

.github/workflows/deploy.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
# Trigger the workflow every time you push to the `main` branch
5+
# Using a different branch name? Replace `main` with your branch’s name
6+
push:
7+
branches: [ main ]
8+
# Allows you to run this workflow manually from the Actions tab on GitHub.
9+
workflow_dispatch:
10+
11+
# Allow this job to clone the repo and create a page deployment
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout your repository using git
22+
uses: actions/checkout@v4
23+
- name: Install, build, and upload your site
24+
uses: withastro/action@v3
25+
# with:
26+
# path: . # The root location of your Astro project inside the repository. (optional)
27+
# node-version: 20 # The specific version of Node that should be used to build your site. Defaults to 20. (optional)
28+
# package-manager: pnpm@latest # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)
29+
30+
deploy:
31+
needs: build
32+
runs-on: ubuntu-latest
33+
environment:
34+
name: github-pages
35+
url: ${{ steps.deployment.outputs.page_url }}
36+
steps:
37+
- name: Deploy to GitHub Pages
38+
id: deployment
39+
uses: actions/deploy-pages@v4

astro.config.mjs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import { defineConfig } from "astro/config";
33
import solidJs from "@astrojs/solid-js";
44
import Icons from "unplugin-icons/vite";
5-
import cloudflare from "@astrojs/cloudflare";
65

76
// https://astro.build/config
87
export default defineConfig({
@@ -21,8 +20,4 @@ export default defineConfig({
2120
vite: {
2221
plugins: [Icons({ compiler: "solid" })],
2322
},
24-
25-
adapter: cloudflare({
26-
imageService: "passthrough",
27-
}),
2823
});

bun.lockb

-25.7 KB
Binary file not shown.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,12 @@
77
"prepare": "panda codegen",
88
"dev": "astro dev",
99
"build": "astro build",
10-
"preview": "wrangler pages dev ./dist",
10+
"preview": "astro preview",
1111
"astro": "astro",
1212
"check": "biome check src"
1313
},
1414
"dependencies": {
1515
"@ark-ui/solid": "^4.9.0",
16-
"@astrojs/cloudflare": "^12.2.0",
1716
"@astrojs/solid-js": "^5.0.4",
1817
"@fontsource-variable/jetbrains-mono": "^5.1.2",
1918
"astro": "^5.1.8",

src/pages/open-graph/[...route].ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ const pages = {
77
},
88
};
99

10-
1110
export const { getStaticPaths, GET } = OGImageRoute({
1211
param: "route",
1312
pages: pages,
@@ -16,12 +15,14 @@ export const { getStaticPaths, GET } = OGImageRoute({
1615
return {
1716
title: page.title,
1817
description: page.description,
19-
fonts: ["https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-mono@latest/latin-500-normal.ttf"],
20-
font: {
21-
title: {
22-
families: ["IBM Plex Mono"],
23-
}
24-
}
18+
fonts: [
19+
"https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-mono@latest/latin-500-normal.ttf",
20+
],
21+
font: {
22+
title: {
23+
families: ["IBM Plex Mono"],
24+
},
25+
},
2526
};
2627
},
2728
});

wrangler.toml

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)