report-viewer.yml 678 B

123456789101112131415161718192021222324252627282930
  1. name: Report Viewer Deployment Workflow
  2. on:
  3. workflow_dispatch: # Use this to dispatch from the Actions Tab
  4. push:
  5. branches:
  6. - main
  7. jobs:
  8. build-and-deploy:
  9. runs-on: ubuntu-latest
  10. steps:
  11. - name: Checkout 🛎️
  12. uses: actions/checkout@v3
  13. - uses: actions/setup-node@v3
  14. with:
  15. node-version: "16"
  16. - name: Install and Build 🔧
  17. working-directory: report-viewer
  18. run: |
  19. npm install
  20. npm run build
  21. - name: Deploy 🚀
  22. uses: JamesIves/github-pages-deploy-action@v4.4.0
  23. with:
  24. branch: gh-pages
  25. folder: report-viewer/dist