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 82aec97 commit 79ff067
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,20 @@ jobs:
- name: Setup some global environment variables
run: |
echo "git_describe=$(git describe)" >> $GITHUB_ENV
echo "app_version_latest=$(grep version frontend/package.json | awk -F \" '{print $4}')" >> $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:
Expand All @@ -58,4 +72,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-${{ env.app_version_latest }}.jar

0 comments on commit 79ff067

Please sign in to comment.