Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 15 additions & 26 deletions .github/workflows/on_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
release:
types: [published]

permissions:
contents: write

jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -33,21 +36,13 @@ jobs:
- name: Build and Release
run: mvn -s .ci-settings.xml clean deploy -DskipTests -P release-ossrh -B -U -pl agent,deep --also-make

- name: Get release
id: get_release
uses: bruceadams/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}

- name: Upload release binary
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./agent/target/deep-${VERSION}.jar
file: ./agent/target/deep-${VERSION}.jar
asset_name: Deep Agent
asset_content_type: application/octet-stream
tag: ${{ github.ref_name }}
overwrite: true

JavaSite:
runs-on: ubuntu-latest
Expand All @@ -70,17 +65,11 @@ jobs:
- name: Zip Site
run: tar -czf site.tar.gz target/staging

- name: Get release
id: get_release
uses: bruceadams/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}

- uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_content_type: application/octet-stream
name: Maven Site
asset_path: site.tar.gz
file: site.tar.gz
asset_name: Maven Site
tag: ${{ github.ref_name }}
overwrite: true