add github pages deploy

This commit is contained in:
hzrd149 2023-07-02 14:29:18 -05:00
parent dfbd86f0aa
commit 8985f349a9
5 changed files with 577 additions and 455 deletions

51
.github/workflows/pages.yml vendored Normal file
View File

@ -0,0 +1,51 @@
name: GitHub Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["master"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: "npm"
- name: Install dependencies
run: yarn install
- name: Build
run: yarn build
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
# Upload dist repository
path: "./dist"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

1
CNAME Normal file
View File

@ -0,0 +1 @@
nostrudel.ninja

View File

@ -12,25 +12,25 @@
},
"dependencies": {
"@chakra-ui/icons": "^2.0.19",
"@chakra-ui/react": "^2.6.1",
"@chakra-ui/react": "^2.7.1",
"@emotion/react": "^11.11.0",
"@emotion/styled": "^11.11.0",
"bech32": "^2.0.0",
"cheerio": "^1.0.0-rc.12",
"dayjs": "^1.11.8",
"dayjs": "^1.11.9",
"framer-motion": "^7.10.3",
"hls.js": "^1.4.7",
"idb": "^7.1.1",
"identicon.js": "^2.3.3",
"light-bolt11-decoder": "^3.0.0",
"noble-secp256k1": "^1.2.14",
"nostr-tools": "^1.11.1",
"nostr-tools": "^1.12.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-error-boundary": "^4.0.4",
"react-hook-form": "^7.43.9",
"react-error-boundary": "^4.0.10",
"react-hook-form": "^7.45.1",
"react-qr-barcode-scanner": "^1.0.6",
"react-router-dom": "^6.11.2",
"react-router-dom": "^6.14.1",
"react-singleton-hook": "^4.0.1",
"react-use": "^17.4.0",
"react-virtualized-auto-sizer": "^1.0.20",
@ -38,17 +38,21 @@
"webln": "^0.3.2"
},
"devDependencies": {
"@changesets/cli": "^2.26.1",
"@changesets/cli": "^2.26.2",
"@testing-library/cypress": "^9.0.0",
"@types/identicon.js": "^2.3.1",
"@types/react": "^18.2.7",
"@types/react-dom": "^18.2.4",
"@types/react": "^18.2.14",
"@types/react-dom": "^18.2.6",
"@types/react-window": "^1.8.5",
"@vitejs/plugin-react": "^4.0.0",
"cypress": "^12.13.0",
"@vitejs/plugin-react": "^4.0.1",
"cypress": "^12.16.0",
"prettier": "^2.8.8",
"typescript": "^5.0.4",
"vite": "^4.3.8",
"vite-plugin-pwa": "^0.15.1"
"typescript": "^5.1.6",
"vite": "^4.3.9",
"vite-plugin-pwa": "^0.16.4"
},
"resolutions": {
"@types/react": "^18.2.14",
"@types/react-dom": "^18.2.6"
}
}

View File

@ -4,6 +4,7 @@ import { VitePWA } from "vite-plugin-pwa";
// https://vitejs.dev/config/
export default defineConfig({
base: process.env.VITE_BASE ?? "/",
build: {
target: ["chrome89", "edge89", "firefox89", "safari15"],
},

947
yarn.lock

File diff suppressed because it is too large Load Diff