Root update #37
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Angular to Pages | |
on: | |
push: | |
branches: ["master"] | |
workflow_dispatch: | |
permissions: | |
contents: write | |
pages: write | |
id-token: write | |
concurrency: | |
group: "pages" | |
cancel-in-progress: false | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
# Setup Node.js | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20' | |
# Install dependencies | |
- name: Install Dependencies | |
run: npm install | |
working-directory: ./fmd-telemetry | |
# Install Angular CLI | |
- name: Install Angular CLI | |
run: npm install -g @angular/cli | |
working-directory: ./fmd-telemetry | |
# Build | |
- name: Build Angular app | |
run: ng build --base-href /fmd-telemetry/ | |
working-directory: ./fmd-telemetry | |
# List output directory | |
- name: List output directory | |
run: ls -l fmd-telemetry/dist/ | |
# Deploy to gh-pages | |
- name: Deploy to GitHub Pages | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages # The branch the action should deploy to. | |
folder: fmd-telemetry/dist/fmd-telemetry # The folder the action should deploy. |