deploy.yml 739 B

123456789101112131415161718192021222324252627282930
  1. name: Deploy to GitHub Pages
  2. on:
  3. push:
  4. branches:
  5. - master
  6. jobs:
  7. deploy:
  8. name: Deploy to GitHub Pages
  9. runs-on: ubuntu-latest
  10. steps:
  11. - uses: actions/checkout@v3
  12. - uses: actions/setup-node@v3
  13. with:
  14. node-version: 18
  15. cache: npm
  16. - name: Install dependencies
  17. run: npm install --force
  18. - name: Build website
  19. run: npm run build
  20. - name: Deploy to GitHub Pages
  21. uses: peaceiris/actions-gh-pages@v3
  22. with:
  23. github_token: ${{ secrets.GITHUB_TOKEN }}
  24. publish_dir: ./build
  25. user_name: github-actions[bot]
  26. user_email: 41898282+github-actions[bot]@users.noreply.github.com