Skip to content

Commit

Permalink
Fix duplication of release upload to Nexus
Browse files Browse the repository at this point in the history
  • Loading branch information
Rypac committed Jul 21, 2020
1 parent 789abea commit 87ebdb0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@ jobs:
with:
java-version: 1.8

- name: Publish SNAPSHOT to the Maven Central Repository
run: ./gradlew clean afterpay:uploadArchives --no-daemon --no-parallel
- name: Clean repository before building SDK
run: ./gradlew clean

- name: Build and upload archives to the Maven Central Repository
run: ./gradlew afterpay:uploadArchives --no-daemon --no-parallel
env:
SONATYPE_NEXUS_USERNAME: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
SONATYPE_NEXUS_PASSWORD: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@ jobs:
- name: Remove SNAPSHOT from version
run: sed -i 's/-SNAPSHOT//g' gradle.properties

- name: Upload archives to the Maven Central Repository
run: ./gradlew clean afterpay:uploadArchives --no-daemon --no-parallel
- name: Clean repository before building SDK
run: ./gradlew clean

- name: Build and upload archives to the Maven Central Repository
run: ./gradlew afterpay:uploadArchives --no-daemon --no-parallel
env:
SONATYPE_NEXUS_USERNAME: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
SONATYPE_NEXUS_PASSWORD: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
Expand Down

0 comments on commit 87ebdb0

Please sign in to comment.