We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2008fb commit 64b15b7Copy full SHA for 64b15b7
.github/workflows/maven.yml
@@ -20,12 +20,17 @@ jobs:
20
- name: Build with Maven
21
run: mvn clean package
22
23
+ - name: Get artifact path
24
+ id: get_artifact
25
+ run: |
26
+ echo "ARTIFACT_PATH=$(ls target/ShellApiLogOptimizer-*.jar | head -n 1)" >> $GITHUB_OUTPUT
27
+
28
- name: Upload JAR
29
uses: actions/upload-release-asset@v1
30
env:
31
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32
with:
33
upload_url: ${{ github.event.release.upload_url }}
- asset_path: ./target/ShellApiLogOptimizer-0.0.1-SNAPSHOT.jar
34
+ asset_path: ${{ steps.get_artifact.outputs.ARTIFACT_PATH }}
35
asset_name: ShellApiLogOptimizer-${{ github.ref_name }}.jar
36
asset_content_type: application/java-archive
0 commit comments