Skip to content

Commit

Permalink
Add gh-pages workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
spaaaacccee committed Sep 20, 2023
1 parent 7328c19 commit 55eaa4f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Deploy to GitHub Pages
on: [push]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
env:
CI: false
steps:
- name: Checkout
uses: actions/[email protected]

- name: Install and Build
run: |
npm install
cd client && npm run build
- name: Deploy
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: client/dist # The folder the action should deploy.
2 changes: 1 addition & 1 deletion client/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"compilerOptions": {
"target": "ESNext",
"lib": ["dom", "dom.iterable", "esnext"],
"types": ["vite/client", "vite-plugin-svgr/client"],
"types": ["vite/client"],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
Expand Down

0 comments on commit 55eaa4f

Please sign in to comment.