Skip to content

Commit efbebda

Browse files
authored
Merge pull request #35 from ChafficPlugins/claude/modernize-mininglevels-ICTbK
ci: upload plugin JAR as build artifact
2 parents 525579c + f206581 commit efbebda

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,19 @@ jobs:
2323
- name: Build and test
2424
run: mvn -B clean verify --file pom.xml
2525

26+
- name: Get project version
27+
id: version
28+
run: echo "VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> "$GITHUB_OUTPUT"
29+
30+
- name: Rename JAR for release
31+
run: cp target/MiningLevels-${{ steps.version.outputs.VERSION }}.jar target/MiningLevels-v${{ steps.version.outputs.VERSION }}.jar
32+
33+
- name: Upload plugin JAR
34+
uses: actions/upload-artifact@v4
35+
with:
36+
name: MiningLevels-v${{ steps.version.outputs.VERSION }}
37+
path: target/MiningLevels-v${{ steps.version.outputs.VERSION }}.jar
38+
2639
- name: Upload test results
2740
if: always()
2841
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)