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 ab3bca6 commit 4b28feb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,13 @@ 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 }}
publish_dir: ./build
# keep_filesをtrueにすると、git pushの度に一旦全てのファイルが削除される挙動を抑制できる
# keep_files: true
user_name: github-actions
user_email: [email protected]
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]>\" --repo https://github.com/$GITHUB_REPOSITORY.git --token $GITHUB_TOKEN"
"deploy": "gh-pages -d build"
},
"eslintConfig": {
"extends": [
Expand Down

0 comments on commit 4b28feb

Please sign in to comment.