diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml new file mode 100644 index 0000000..f889187 --- /dev/null +++ b/.github/workflows/static.yml @@ -0,0 +1,33 @@ +name: Deploy Angular App to GitHub Pages + +on: + push: + branches: + - master + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + + - name: Install Node.js + uses: actions/setup-node@v1 + with: + node-version: '18' + + - name: Install Angular CLI + run: npm install -g @angular/cli + + - name: Install npm dependencies + run: npm install + + - name: Build Angular app + run: ng build --prod --base-href "/fmd-telemetry/" + + - name: Deploy to GitHub Pages + uses: JamesIves/github-pages-deploy-action@v4 + with: + branch: gh-pages + folder: dist/fmd-telemetry