Skip to content

Commit

Permalink
fix: gh pages ci
Browse files Browse the repository at this point in the history
  • Loading branch information
TurtIeSocks committed Mar 13, 2024
1 parent 25b5ffb commit 50419e6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 216 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,18 @@ jobs:
with:
fetch-depth: 2

- name: Setup Node.js environment
- name: Build Static Content
uses: actions/[email protected]
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: npm install -g pnpm
- run: pnpm install
- run: pnpm run deploy
- run: pnpm run build

- name: Publish GH Pages
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist-web

5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
"scripts": {
"start": "vite",
"build": "vite build -- -r",
"build:ts": "tsc --project tsconfig.build.json",
"predeploy": "pnpm run build",
"deploy": "gh-pages -d dist-web"
"build:ts": "tsc --project tsconfig.build.json"
},
"devDependencies": {
"@na-ji/pogo-protos": "latest",
Expand All @@ -26,7 +24,6 @@
"@types/react": "^18.2.65",
"@types/react-dom": "^18.2.22",
"@vitejs/plugin-react": "^4.2.1",
"gh-pages": "^6.1.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"tslib": "^2.6.2",
Expand Down
210 changes: 0 additions & 210 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 50419e6

Please sign in to comment.