Skip to content

Update app.module.ts #14

Update app.module.ts

Update app.module.ts #14

Workflow file for this run

name: Deploy to github pages
on:
push:
branches: [ "master" ]
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
name: Run Lint and Deploy
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- name: Use Node.js 22
uses: actions/setup-node@v1
with:
# no support for lts as of now with github actions.
# issue link : https://github.com/actions/setup-node/issues/26
# lts/gallium node v19.7.0 (npm v9.5.0)
node-version: '22.9.0'
- name: Angular CLI install
run: npm install -g --silent @angular/[email protected]
- name: Npm install
run: npm install
- name: Run eslint
run: npx ng lint
- name: Run build
run: npm run build:prod
- name: Create 404
run: cp ./dist/MifosX/index.html ./dist/MifosX/404.html
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./dist/MifosX/
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4