Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
johc committed Mar 21, 2024
2 parents db20001 + fbd6f22 commit 1cd620a
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 1cd620a

Please sign in to comment.