static.yml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # Simple workflow for deploying static content to GitHub Pages
  2. name: Deploy static content to Pages
  3. on:
  4. # Runs on pushes targeting the default branch
  5. push:
  6. branches: ["master"]
  7. # Allows you to run this workflow manually from the Actions tab
  8. workflow_dispatch:
  9. # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
  10. permissions:
  11. contents: read
  12. pages: write
  13. id-token: write
  14. # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
  15. # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
  16. concurrency:
  17. group: "pages"
  18. cancel-in-progress: false
  19. jobs:
  20. # Single deploy job since we're just deploying
  21. deploy:
  22. environment:
  23. name: github-pages
  24. url: ${{ steps.deployment.outputs.page_url }}
  25. runs-on: ubuntu-latest
  26. steps:
  27. - name: Checkout
  28. uses: actions/checkout@v3
  29. - name: Set up Node.js
  30. uses: actions/setup-node@v3
  31. with:
  32. node-version: "${{ env.NODE }}"
  33. cache: npm
  34. - name: Install npm dependencies
  35. run: npm ci
  36. - name: Run dist
  37. run: npm run compile
  38. - name: Setup Pages
  39. uses: actions/configure-pages@v3
  40. - name: Upload artifact
  41. uses: actions/upload-pages-artifact@v2
  42. with:
  43. # Upload entire repository
  44. path: '.'
  45. - name: Deploy to GitHub Pages
  46. id: deployment
  47. uses: actions/deploy-pages@v2