Skip to content

Commit

Permalink
add archive step of new angular build github action
Browse files Browse the repository at this point in the history
add archive step of new angular build github action
  • Loading branch information
PeterWarren committed Nov 15, 2023
1 parent 4b06952 commit d470dde
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build package and archive

on:
push:
branches:
- master
pull_request:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: npm install and npm run CI commands
run: |
npm i
npm run build-dev
- name: Zip artifact for deployment
run: zip release.zip ./dist/* -r
- name: file bundle artifact
if: contains(github.ref, 'master')
uses: actions/upload-artifact@v2
with:
name: portal UI dev bundle
path: release.zip

0 comments on commit d470dde

Please sign in to comment.