threepipe
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.

deploy-pages.yml 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
  2. # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
  3. name: Build docs and deploy to github pages.
  4. on:
  5. # Runs on pushes targeting the default branch
  6. push:
  7. branches: ["master"]
  8. # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
  9. permissions:
  10. contents: read
  11. pages: write
  12. id-token: write
  13. # Allow one concurrent deployment
  14. concurrency:
  15. group: "pages"
  16. cancel-in-progress: true
  17. jobs:
  18. build-and-deploy:
  19. environment:
  20. name: github-pages
  21. url: ${{ steps.deployment.outputs.page_url }}
  22. runs-on: ubuntu-latest
  23. strategy:
  24. matrix:
  25. node-version: [18.x]
  26. # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
  27. steps:
  28. - uses: actions/checkout@v3
  29. - name: Use Node.js ${{ matrix.node-version }}
  30. uses: actions/setup-node@v3
  31. with:
  32. node-version: ${{ matrix.node-version }}
  33. cache: 'npm'
  34. - run: npm ci
  35. - name: Setup Pages
  36. uses: actions/configure-pages@v3
  37. - name: Upload artifact
  38. uses: actions/upload-pages-artifact@v1
  39. with:
  40. path: '.'
  41. - name: Deploy to GitHub Pages
  42. id: deployment
  43. uses: actions/deploy-pages@v1