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 9a72e69 commit 2dc9fb4
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,18 @@ 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
- name: Copy frontend artifacts
run: |
mkdir -p backend/deeplab-frontend/src/main/resources/static
cp -R frontend/deeplab/dist/* backend/deeplab-frontend/src/main/resources/static
- name: Build the backend
env:
USERNAME: ${{ github.actor }}
Expand All @@ -58,4 +70,4 @@ 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

0 comments on commit 2dc9fb4

Please sign in to comment.