You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
811 B

2 years ago
2 years ago
2 years ago
  1. name: Pages
  2. on:
  3. push:
  4. branches:
  5. - main # default branch
  6. jobs:
  7. pages:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - uses: actions/checkout@v2
  11. - name: Use Node.js 12.x
  12. uses: actions/setup-node@v1
  13. with:
  14. node-version: '12.x'
  15. - name: Cache NPM dependencies
  16. uses: actions/cache@v2
  17. with:
  18. path: node_modules
  19. key: ${{ runner.OS }}-npm-cache
  20. restore-keys: |
  21. ${{ runner.OS }}-npm-cache
  22. - name: Install Dependencies
  23. run: npm install
  24. - name: Build
  25. run: npm run build
  26. - name: Deploy
  27. uses: peaceiris/actions-gh-pages@v3
  28. with:
  29. github_token: ${{ secrets.GITHUB_TOKEN }}
  30. publish_dir: ./public
  31. publish_branch: master # deploying branch