Skip to content

Commit

Permalink
fix(build): update release build to attach artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
Umaaz committed May 23, 2024
1 parent 15d446d commit e9e06ad
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/on_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,7 @@ jobs:
- name: Update java version
run: mvn versions:set -DnewVersion=${VERSION} -B -U
- name: Build and Release
run: mvn -s .ci-settings.xml clean package deploy -DskipTests -P release-ossrh -B -U -pl agent,deep --also-make

- name: Upload agent to release
uses: svenstaro/upload-release-action@v2
with:
file: ./agent/target/agent-${VERSION}.jar
asset_name: Deep Agent
tag: ${{ github.ref_name }}
overwrite: true

- name: Upload lite agent to release
uses: svenstaro/upload-release-action@v2
with:
file: ./agent/target/agent-${VERSION}-lite.jar
asset_name: Deep Lite Agent
tag: ${{ github.ref_name }}
overwrite: true
run: mvn -s .ci-settings.xml clean deploy -DskipTests -P release-ossrh -B -U -pl agent,deep --also-make

JavaSite:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -84,3 +68,19 @@ jobs:
tag: ${{ github.ref_name }}
overwrite: true

- name: Upload agent to release
uses: svenstaro/upload-release-action@v2
with:
file: ./agent/target/agent-${VERSION}.jar
asset_name: Deep Agent
tag: ${{ github.ref_name }}
overwrite: true

- name: Upload lite agent to release
uses: svenstaro/upload-release-action@v2
with:
file: ./agent/target/agent-${VERSION}-lite.jar
asset_name: Deep Lite Agent
tag: ${{ github.ref_name }}
overwrite: true

0 comments on commit e9e06ad

Please sign in to comment.