Skip to content

Commit

Permalink
workflow修正
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenshin0011 committed Jun 14, 2024
1 parent e7d651e commit c86184a
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,28 @@ jobs:
with:
node-version: '20'

- name: Print current directory
run: pwd

- name: Clear npm cache and reinstall dependencies
run: |
cd front
rm -rf node_modules
rm -f package-lock.json
npm cache clean --force
cd ./front
npm install
- name: Print current directory
run: pwd

- name: Build project
run: |
cd front
cd ./front
npm run build
- name: Print current directory
run: pwd

- name: Deploy to GitHub Pages
run: |
cd front
cd ./front
npm run deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit c86184a

Please sign in to comment.