Skip to content

Commit

Permalink
Create package-prod.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Vidyaaa24 authored Sep 20, 2023
1 parent a0ccb60 commit bb976b6
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/package-prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
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: '8'
distribution: 'adopt'

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 16

- name: Build with Yarn | NPM and Create WAR file
run: |
yarn config set legacy-peer-deps true
yarn global add node-gyp
yarn add node-sass --force
yarn install --force
npm run ng build --prod --aot && grunt
- name: Upload WAR file as artifact
uses: actions/upload-artifact@v2
with:
name: Helpline1097-UI
path: target/

0 comments on commit bb976b6

Please sign in to comment.