Bumped upload artifact version #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build JAR | |
on: | |
workflow_dispatch: # Allows manual triggering | |
push: | |
branches: | |
- 'build-test' # Replace with your desired branch name | |
jobs: | |
build_jar: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
- name: Build JAR | |
run: | | |
cd examples/extension | |
./gradlew build | |
- name: Upload JAR as artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: middleware-javaagent | |
path: examples/extension/build/libs/middleware-javaagent.jar |