Skip to content

Commit

Permalink
Update main.yml (#20)
Browse files Browse the repository at this point in the history
* Update main.yml

* Update main.yml

* Update main.yml

* Update main.yml

* Update main.yml

* update

* rm a.sh
  • Loading branch information
sunwu51 authored Apr 21, 2024
1 parent 7b96f35 commit 03a7792
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 18 deletions.
27 changes: 9 additions & 18 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ jobs:
distribution: 'adopt'
- name: Build Java with Maven
run: |
mvn package
mvn package && cp target/swapper-0.0.1-SNAPSHOT.jar swapper.jar
shell: bash
- name: Upload Jar
uses: actions/upload-artifact@v3
with:
name: swapper.jar
path: target/swapper-0.0.1-SNAPSHOT.jar
name: artifacts
path: swapper.jar
build-go:
name: Build Go
runs-on: ubuntu-latest
Expand All @@ -35,6 +35,7 @@ jobs:
goos: [windows, darwin, linux]
goarch: [arm64, amd64]
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
Expand All @@ -55,7 +56,7 @@ jobs:
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: jbs-client-${{ matrix.goos }}-${{ matrix.goarch }}.zip
name: artifacts
path: jbs-client-${{ matrix.goos }}-${{ matrix.goarch }}.zip

release:
Expand All @@ -75,19 +76,9 @@ jobs:
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Upload Release Asset
- name: Upload Release Assets
uses: softprops/action-gh-release@v1
with:
files: artifacts/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd JVMByteSwapTool
for zipfile in *; do
if [[ -f "$zipfile" ]]; then
echo "Uploading $zipfile"
curl \
-X POST \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Content-Type: $(file -b --mime-type "$zipfile")" \
--data-binary @"$zipfile" \
"${{ steps.create_release.outputs.upload_url }}?name=$(basename "$zipfile")"
fi
done
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# JVM ByteSwap Tool
![logo](sw-ico.png)

![actions](https://github.com/sunwu51/JVMByteSwapTool/actions/workflows/main.yml/badge.svg)

A tool that can hot swap the class byte code while jvm is running. Very suitable for `SpringBoot framework`.

Based on the jvm instrumentation tech, javassist lib, JVMTI.
Expand Down

0 comments on commit 03a7792

Please sign in to comment.