deploy.yml 493 B

123456789101112131415161718192021222324
  1. name: Deploy to GitHub Pages
  2. on:
  3. push:
  4. branches:
  5. - master
  6. jobs:
  7. build-and-deploy:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - uses: actions/checkout@v1
  11. - name: Build
  12. run: |
  13. npm ci
  14. npm run build
  15. - name: Deploy
  16. uses: JamesIves/github-pages-deploy-action@releases/v3
  17. with:
  18. ACCESS_TOKEN: ${{secrets.GH_DEPLOY}}
  19. GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
  20. BRANCH: gh-pages
  21. FOLDER: build