Skip to content

Commit bcc73c7

Browse files
committed
github garbage.
1 parent 31d277d commit bcc73c7

File tree

2 files changed

+63
-0
lines changed

2 files changed

+63
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
# Runs on pushes targeting the default branch
5+
push:
6+
branches: ["master"]
7+
8+
# Allows you to run this workflow manually from the Actions tab
9+
workflow_dispatch:
10+
11+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
18+
concurrency:
19+
group: "pages"
20+
cancel-in-progress: true
21+
22+
jobs:
23+
deploy:
24+
environment:
25+
name: github-pages
26+
url: ${{ steps.deployment.outputs.page_url }}
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: Checkout Repository
30+
uses: actions/checkout@v4
31+
32+
- name: Set up Node.js
33+
uses: actions/setup-node@v4
34+
with:
35+
node-version: 20
36+
cache: 'npm'
37+
cache-dependency-path: 'browser/package-lock.json'
38+
39+
- name: Install Dependencies
40+
run: npm install
41+
working-directory: ./browser
42+
43+
- name: Copy schema.yaml to browser public folder
44+
run: cp schema.yaml browser/public/
45+
46+
- name: Build Project
47+
run: npm run build
48+
working-directory: ./browser
49+
env:
50+
NODE_ENV: production
51+
52+
- name: Setup Pages
53+
uses: actions/configure-pages@v4
54+
55+
- name: Upload Artifact
56+
uses: actions/upload-pages-artifact@v3
57+
with:
58+
path: './browser/dist'
59+
60+
- name: Deploy to GitHub Pages
61+
id: deployment
62+
uses: actions/deploy-pages@v4

browser/vite.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import tailwindcss from '@tailwindcss/vite'
44

55
export default defineConfig({
66
plugins: [solidPlugin(), tailwindcss()],
7+
base: process.env.NODE_ENV === 'production' ? '/registry-of-kinds/' : '/',
78
server: {
89
port: 3000,
910
},

0 commit comments

Comments
 (0)