Skip to content

Commit

Permalink
chore: Optimize action
Browse files Browse the repository at this point in the history
  • Loading branch information
JerryFan626 committed Nov 12, 2023
1 parent c2b4687 commit e6389c7
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/release_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,20 @@ jobs:
yarn-${{ runner.os }}-
yarn-
- name: Build and Copy Artifacts
- name: Build FE Static
run: |
cd chat2db-client
yarn install
yarn run build:web:prod --app_version=99.0.${{ github.run_id }} --app_port=10822
cp -r dist ../chat2db-server/chat2db-server-start/src/main/resources/static/front
cp -r dist/index.html ../chat2db-server/chat2db-server-start/src/main/resources/thymeleaf/
mvn clean package -B '-Dmaven.test.skip=true' -f ../chat2db-server/pom.xml
mkdir -p versions/99.0.${{ github.run_id }}/static
echo "99.0.${{ github.run_id }}" > versions/version
- name: Build BE Static
run: |
mvn clean package -B '-Dmaven.test.skip=true' -f chat2db-server/pom.xml
cd chat2db-client
mkdir -p chat2db-client/versions/99.0.${{ github.run_id }}/static
echo -n "99.0.${{ github.run_id }}" > chat2db-client/versions/99.0.${{ github.run_id }}/version
cd ..
cp chat2db-server/chat2db-server-start/target/chat2db-server-start.jar chat2db-client/versions/99.0.${{ github.run_id }}/static/
- name: Prepare Build Electron
Expand Down

0 comments on commit e6389c7

Please sign in to comment.