Skip to content

Commit c6a3da3

Browse files
Merge pull request #5 from aaronriekenberg/050622_github_packages
Set version for gradle publish.
2 parents a0600a5 + 43865ef commit c6a3da3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/gradle-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ jobs:
3232
- name: Build with Gradle
3333
uses: gradle/gradle-build-action@0d13054264b0bb894ded474f08ebb30921341cee
3434
with:
35-
arguments: build
35+
arguments: -Pversion=${{ github.event.release.tag_name }} build
3636

3737
# The USERNAME and TOKEN need to correspond to the credentials environment variables used in
3838
# the publishing section of your build.gradle
3939
- name: Publish to GitHub Packages
4040
uses: gradle/gradle-build-action@0d13054264b0bb894ded474f08ebb30921341cee
4141
with:
42-
arguments: publish
42+
arguments: -Pversion=${{ github.event.release.tag_name }} publish
4343
env:
4444
USERNAME: ${{ github.actor }}
4545
TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)