Skip to content

Commit aada796

Browse files
authored
Adding clean and build to gradle release and snapshot (#21)
1 parent 9716eee commit aada796

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
restore-keys: |
3636
${{ runner.os }}-gradle-core-
3737
- name: Publush release to sonatype
38-
run: ./gradlew publishToSonatype -Prelease closeAndReleaseSonatypeStagingRepository
38+
run: ./gradlew clean build publishToSonatype -Prelease closeAndReleaseSonatypeStagingRepository
3939
env:
4040
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
4141
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}

.github/workflows/snapshot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
restore-keys: |
2323
${{ runner.os }}-gradle-core-
2424
- name: Publush snapshot to sonatype
25-
run: ./gradlew publishToSonatype
25+
run: ./gradlew clean build publishToSonatype
2626
env:
2727
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
2828
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}

0 commit comments

Comments
 (0)