Skip to content

Commit

Permalink
デプロイ修正
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenshin0011 committed Jun 14, 2024
1 parent 08836b9 commit ab3bca6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ jobs:
npm run build
- name: Deploy to GitHub Pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}
run: |
cd front
npm run deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion front/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"deploy": "gh-pages -d build --user \"GitHub Actions <[email protected]>\""
"deploy": "gh-pages -d build --user \"GitHub Actions <[email protected]>\" --repo https://github.com/$GITHUB_REPOSITORY.git --token $GITHUB_TOKEN"
},
"eslintConfig": {
"extends": [
Expand Down

0 comments on commit ab3bca6

Please sign in to comment.