Skip to content

Commit aa38c5d

Browse files
committed
Add CI
1 parent cffd1bc commit aa38c5d

File tree

2 files changed

+70
-1
lines changed

2 files changed

+70
-1
lines changed

.github/workflows/static.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# Simple workflow for deploying static content to GitHub Pages
2+
name: Deploy to GitHub Pages
3+
4+
on:
5+
# Runs on pushes targeting the default branch
6+
workflow_dispatch:
7+
push:
8+
branches: ["master"]
9+
10+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
11+
permissions:
12+
contents: read
13+
pages: write
14+
id-token: write
15+
16+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
17+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
18+
concurrency:
19+
group: "pages"
20+
cancel-in-progress: false
21+
22+
jobs:
23+
build_site:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: Checkout
27+
uses: actions/checkout@v4
28+
29+
- name: Install pnpm
30+
uses: pnpm/action-setup@v3
31+
with:
32+
version: 9
33+
34+
- name: Install Node.js
35+
uses: actions/setup-node@v4
36+
with:
37+
node-version: 20
38+
cache: pnpm
39+
40+
- name: Install dependencies
41+
run: pnpm install
42+
43+
- name: build
44+
env:
45+
# BASE_PATH: "/${{ github.event.repository.name }}" # Not used because we have custom domain
46+
ORIGIN: "${{ vars.ORIGIN }}"
47+
run: pnpm build
48+
49+
- name: Upload Artifacts
50+
uses: actions/upload-pages-artifact@v3
51+
with:
52+
path: "dist/"
53+
54+
deploy:
55+
needs: build_site
56+
runs-on: ubuntu-latest
57+
58+
permissions:
59+
pages: write
60+
id-token: write
61+
62+
environment:
63+
name: github-pages
64+
url: ${{ steps.deployment.outputs.page_url }}
65+
66+
steps:
67+
- name: Deploy
68+
id: deployment
69+
uses: actions/deploy-pages@v4

src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { InfoView } from "./views/InfoView";
44
import { Dots } from "./components/Dots";
55

66
export function App() {
7-
const [token, setToken] = createSignal<string>("e");
7+
const [token, _setToken] = createSignal<string>("e");
88

99
return (
1010
<>

0 commit comments

Comments
 (0)