Skip to content

Commit 8985f34

Browse files
committed
add github pages deploy
1 parent dfbd86f commit 8985f34

File tree

5 files changed

+582
-460
lines changed

5 files changed

+582
-460
lines changed

.github/workflows/pages.yml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: 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+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
19+
concurrency:
20+
group: "pages"
21+
cancel-in-progress: false
22+
23+
jobs:
24+
# Single deploy job since we're just deploying
25+
deploy:
26+
environment:
27+
name: github-pages
28+
url: ${{ steps.deployment.outputs.page_url }}
29+
runs-on: ubuntu-latest
30+
steps:
31+
- name: Checkout
32+
uses: actions/checkout@v3
33+
- name: Set up Node
34+
uses: actions/setup-node@v3
35+
with:
36+
node-version: 18
37+
cache: "npm"
38+
- name: Install dependencies
39+
run: yarn install
40+
- name: Build
41+
run: yarn build
42+
- name: Setup Pages
43+
uses: actions/configure-pages@v3
44+
- name: Upload artifact
45+
uses: actions/upload-pages-artifact@v1
46+
with:
47+
# Upload dist repository
48+
path: "./dist"
49+
- name: Deploy to GitHub Pages
50+
id: deployment
51+
uses: actions/deploy-pages@v2

CNAME

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nostrudel.ninja

package.json

+18-14
Original file line numberDiff line numberDiff line change
@@ -12,43 +12,47 @@
1212
},
1313
"dependencies": {
1414
"@chakra-ui/icons": "^2.0.19",
15-
"@chakra-ui/react": "^2.6.1",
15+
"@chakra-ui/react": "^2.7.1",
1616
"@emotion/react": "^11.11.0",
1717
"@emotion/styled": "^11.11.0",
1818
"bech32": "^2.0.0",
1919
"cheerio": "^1.0.0-rc.12",
20-
"dayjs": "^1.11.8",
20+
"dayjs": "^1.11.9",
2121
"framer-motion": "^7.10.3",
2222
"hls.js": "^1.4.7",
2323
"idb": "^7.1.1",
2424
"identicon.js": "^2.3.3",
2525
"light-bolt11-decoder": "^3.0.0",
2626
"noble-secp256k1": "^1.2.14",
27-
"nostr-tools": "^1.11.1",
27+
"nostr-tools": "^1.12.1",
2828
"react": "^18.2.0",
2929
"react-dom": "^18.2.0",
30-
"react-error-boundary": "^4.0.4",
31-
"react-hook-form": "^7.43.9",
30+
"react-error-boundary": "^4.0.10",
31+
"react-hook-form": "^7.45.1",
3232
"react-qr-barcode-scanner": "^1.0.6",
33-
"react-router-dom": "^6.11.2",
33+
"react-router-dom": "^6.14.1",
3434
"react-singleton-hook": "^4.0.1",
3535
"react-use": "^17.4.0",
3636
"react-virtualized-auto-sizer": "^1.0.20",
3737
"react-window": "^1.8.9",
3838
"webln": "^0.3.2"
3939
},
4040
"devDependencies": {
41-
"@changesets/cli": "^2.26.1",
41+
"@changesets/cli": "^2.26.2",
4242
"@testing-library/cypress": "^9.0.0",
4343
"@types/identicon.js": "^2.3.1",
44-
"@types/react": "^18.2.7",
45-
"@types/react-dom": "^18.2.4",
44+
"@types/react": "^18.2.14",
45+
"@types/react-dom": "^18.2.6",
4646
"@types/react-window": "^1.8.5",
47-
"@vitejs/plugin-react": "^4.0.0",
48-
"cypress": "^12.13.0",
47+
"@vitejs/plugin-react": "^4.0.1",
48+
"cypress": "^12.16.0",
4949
"prettier": "^2.8.8",
50-
"typescript": "^5.0.4",
51-
"vite": "^4.3.8",
52-
"vite-plugin-pwa": "^0.15.1"
50+
"typescript": "^5.1.6",
51+
"vite": "^4.3.9",
52+
"vite-plugin-pwa": "^0.16.4"
53+
},
54+
"resolutions": {
55+
"@types/react": "^18.2.14",
56+
"@types/react-dom": "^18.2.6"
5357
}
5458
}

vite.config.ts

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { VitePWA } from "vite-plugin-pwa";
44

55
// https://vitejs.dev/config/
66
export default defineConfig({
7+
base: process.env.VITE_BASE ?? "/",
78
build: {
89
target: ["chrome89", "edge89", "firefox89", "safari15"],
910
},

0 commit comments

Comments
 (0)