Skip to content

Commit

Permalink
tryna setup gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
vpavlenko committed Sep 26, 2024
1 parent 089ce6f commit 4ea3d3b
Show file tree
Hide file tree
Showing 4 changed files with 267 additions and 5 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- main

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install and Build
run: |
npm install
npm run build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: dist
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@
"private": true,
"version": "0.0.0",
"type": "module",
"homepage": "https://vpavlenko.github.io/j/",
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
"lint": "eslint .",
"preview": "vite preview"
"preview": "vite preview",
"predeploy": "npm run build",
"deploy": "gh-pages -d dist"
},
"dependencies": {
"react": "^18.3.1",
Expand All @@ -21,9 +24,10 @@
"eslint": "^9.9.0",
"eslint-plugin-react-hooks": "^5.1.0-rc.0",
"eslint-plugin-react-refresh": "^0.4.9",
"gh-pages": "^X.X.X",
"globals": "^15.9.0",
"typescript": "^5.5.3",
"typescript-eslint": "^8.0.1",
"vite": "^5.4.1"
}
}
}
Loading

0 comments on commit 4ea3d3b

Please sign in to comment.