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.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. # Allows you to run this workflow manually from the Actions tab
  9. workflow_dispatch:
  10. # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
  11. permissions:
  12. contents: read
  13. pages: write
  14. id-token: write
  15. # Allow one concurrent deployment
  16. concurrency:
  17. group: "pages"
  18. cancel-in-progress: true
  19. jobs:
  20. build-and-deploy:
  21. environment:
  22. name: github-pages
  23. url: ${{ steps.deployment.outputs.page_url }}
  24. runs-on: ubuntu-latest
  25. strategy:
  26. matrix:
  27. node-version: [18.x]
  28. # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
  29. steps:
  30. - uses: actions/checkout@v3
  31. - name: Use Node.js ${{ matrix.node-version }}
  32. uses: actions/setup-node@v3
  33. with:
  34. node-version: ${{ matrix.node-version }}
  35. cache: 'npm'
  36. - run: npm ci
  37. - run: mkdir _site
  38. - run: mv -t _site docs dist examples README.md LICENSE
  39. - name: Setup Pages
  40. uses: actions/configure-pages@v3
  41. - name: Upload artifact
  42. uses: actions/upload-pages-artifact@v1
  43. with:
  44. path: '_site'
  45. - name: Deploy to GitHub Pages
  46. id: deployment
  47. uses: actions/deploy-pages@v1