threepipe
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

deploy-pages.yml 2.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. cache-dependency-path: '**/package-lock.json' # https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#caching-packages-data
  37. - run: npm ci # this will also run `npm run prepare` which will build
  38. - run: npm run docs
  39. - run: mkdir _site
  40. - run: mv -t _site docs dist examples README.md LICENSE index.html
  41. - run: mkdir -p _site/plugins
  42. - run: find plugins -maxdepth 2 -type d \( -name dist -o -name docs \) -exec sh -c "mkdir -p _site/{} && cp -r {} _site/{}/.." \;
  43. - name: Setup Pages
  44. uses: actions/configure-pages@v3
  45. - name: Upload artifact
  46. uses: actions/upload-pages-artifact@v1
  47. with:
  48. path: '_site'
  49. - name: Deploy to GitHub Pages
  50. id: deployment
  51. uses: actions/deploy-pages@v1