Skip to content

Commit

Permalink
[releng] Update the workflow to build the front-end
Browse files Browse the repository at this point in the history
Bug: #1
Signed-off-by: Laurent Fasani <[email protected]>
  • Loading branch information
lfasani committed Nov 21, 2024
1 parent f2b71ec commit 5deea9b
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,19 @@ jobs:
run: |
echo "git_describe=$(git describe)" >> $GITHUB_ENV
- name: Build the frontend packages
run: |
echo "//npm.pkg.github.com/:_authToken=${{ github.token }}" >> .npmrc
echo "CI=true" >> $GITHUB_ENV
npm ci
npm run build
working-directory: frontend

- name: Copy frontend artifacts
run: |
mkdir -p backend/deeplab-frontend/src/main/resources/static
cp -R frontend/deeplab-web/dist/* backend/deeplab-frontend/src/main/resources/static
- name: Build the backend
env:
USERNAME: ${{ github.actor }}
Expand All @@ -58,4 +71,10 @@ jobs:
USERNAME: ${{ github.actor }}
PASSWORD: ${{ github.token }}
GITHUB_TOKEN: ${{ github.token }}
run: mvn -B deploy -DskipTests --settings settings.xml
run: mvn -B deploy -DskipTests -f backend/pom.xml --settings settings.xml

- name: Store the fat jar
uses: actions/upload-artifact@v4
with:
name: application fat jar
path: backend\deeplab-application\target\deeplab-application-*.jar"

0 comments on commit 5deea9b

Please sign in to comment.