Skip to content

Commit 8a412e0

Browse files
committed
Try fixing gradle versioning pt2
1 parent 53cbb31 commit 8a412e0

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,13 @@ jobs:
3737
id: get_commit
3838
run: echo "commit_hash=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
3939

40-
- name: Build with Gradle
41-
run: ./gradlew build
42-
env:
43-
COMMIT_HASH: ${{ steps.get_commit.outputs.commit_hash }}
44-
4540
- name: Build and publish with Gradle
46-
run: ./gradlew publish
41+
run: ./gradlew build publish
4742
env:
4843
MAVEN_URL: ${{ secrets.MAVEN_SNAPSHOTS_URL }}
4944
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
5045
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
46+
COMMIT_HASH: ${{ steps.get_commit.outputs.commit_hash }}
5147

5248
- uses: actions/upload-artifact@v4
5349
with:

0 commit comments

Comments
 (0)