Skip to content

Commit

Permalink
release script - 7
Browse files Browse the repository at this point in the history
Signed-off-by: daizhenyu <[email protected]>
  • Loading branch information
daizhenyu committed Dec 9, 2024
1 parent 8c9913f commit c3c9ceb
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,7 @@ jobs:
mvn versions:set -DnewVersion='${{ env.version }}'
- name: Build with Maven
run: |
mvn clean package -P agent -DskipTests
cd ${{ github.workspace }}/scripts
echo "Checking JAVA_HOME: $env:JAVA_HOME"
if (Test-Path "$env:JAVA_HOME\lib\tools.jar") {
echo "tools.jar found at $env:JAVA_HOME\lib\tools.jar"
} else {
echo "tools.jar not found"
}
javac -cp "$env:JAVA_HOME\lib\tools.jar" AgentLoader.java -encoding utf-8
cp AgentLoader.class ${{ github.workspace }}/sermant-agent-${{ env.version }}
cd ..
mvn clean package -P package -DskipTests
mvn clean package -P agent -P package -DskipTests
mkdir ${{ github.workspace }}/package
cp ${{ github.workspace }}/sermant-agent-*.tar.gz ${{ github.workspace }}/package/sermant-${{ env.version }}.tar.gz
ls ${{ github.workspace }}/package
Expand Down

0 comments on commit c3c9ceb

Please sign in to comment.