github-pages.yml 1.1 KB

1234567891011121314151617181920212223242526272829
  1. name: Build GitHub Pages
  2. on:
  3. workflow_dispatch:
  4. inputs:
  5. name:
  6. description: 'Reason'
  7. required: false
  8. jobs:
  9. build-and-deploy:
  10. runs-on: ubuntu-latest
  11. steps:
  12. - name: Checkout 🛎️
  13. uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
  14. with:
  15. persist-credentials: false
  16. - name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
  17. env:
  18. CI: ""
  19. run: |
  20. cd web
  21. npm install
  22. npm run build
  23. - name: Deploy 🚀
  24. uses: JamesIves/github-pages-deploy-action@releases/v3
  25. with:
  26. ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
  27. BRANCH: gh-pages # The branch the action should deploy to.
  28. FOLDER: web/build # The folder the action should deploy.