Skip to content

Commit

Permalink
fix homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
htfy96 committed Sep 29, 2024
1 parent 1d9604e commit 4e95146
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 9 deletions.
29 changes: 21 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,30 @@ name: Build and Deploy

on:
push:
branches: [ "master" ]
branches: ["master"]
permissions:
contents: write
jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Setup Node.js environment
uses: actions/[email protected]
- uses: actions/checkout@v3
- name: Build and Deploy React app to GitHub Pages
uses: omkartapale/[email protected]
- name: Setup Node.js environment
uses: actions/[email protected]
- uses: actions/checkout@v3
- run: npm i
shell: bash
- run: npm ci
shell: bash
- run: npm run build
shell: bash
- run: git config user.name github-actions
shell: bash
- run: git config user.email [email protected]
shell: bash
- run: git --work-tree build add --all
shell: bash
- run: git commit -m "Automatic Build and Deploy run by GitHub Actions"
shell: bash
- run: git push origin HEAD:gh-pages --force
shell: bash
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"web-tree-sitter": "^0.23.0",
"web-vitals": "^2.1.4"
},
"homepage": "https://htfy96.github.io/ts-visualizer",
"homepage": ".",
"scripts": {
"start": "craco start",
"build": "craco build",
Expand Down

0 comments on commit 4e95146

Please sign in to comment.