Skip to content

Commit 8ba7c10

Browse files
Update gradle-publish.yml
1 parent 035137a commit 8ba7c10

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

.github/workflows/gradle-publish.yml

+2-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
name: Gradle Package
22
on:
33
push:
4-
branches: [master]
4+
tags:
5+
- '*'
56
workflow_dispatch: {}
67
jobs:
78
build:
89
runs-on: ubuntu-latest
910
permissions:
10-
contents: write
1111
packages: write
1212

1313
steps:
@@ -26,15 +26,9 @@ jobs:
2626
- name: Build with Gradle
2727
run: ./gradlew build
2828

29-
# Bump the version and re-commit
30-
- name: Bump version
31-
id: bump
32-
uses: mickem/gh-action-bump-maven-version@v1.0.0
33-
3429
# The USERNAME and TOKEN need to correspond to the credentials environment variables used in
3530
# the publishing section of your build.gradle
3631
- name: Publish to GitHub Packages
37-
if: steps.bump.outputs.bumped == false
3832
run: ./gradlew publish
3933
env:
4034
USERNAME: ${{ github.actor }}

0 commit comments

Comments
 (0)