This repository has been archived by the owner on Jul 1, 2024. It is now read-only.
Develop to Master (#43) #6
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: Package Prod | |
on: | |
push: | |
branches: [ "master"] | |
jobs: | |
Package: | |
runs-on: ubuntu-latest | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Java | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'zulu' | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
- name: Build with Yarn | |
run: | | |
yarn config set legacy-peer-deps true | |
yarn global add node-gyp | |
yarn add node-sass --force | |
yarn --force | |
yarn build | |
yarn run ng build --configuration=production --aot && grunt | |
- name: Upload WAR file as artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: ECD-UI | |
path: target/ecd-ui-v1.0.war |