Skip to content

Commit

Permalink
Merge pull request #57 from afterpay/fix-upload-duplication
Browse files Browse the repository at this point in the history
Fix duplication of release upload to Nexus
  • Loading branch information
Rypac authored Jul 21, 2020
2 parents 789abea + 87ebdb0 commit e287d5e
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 e287d5e

Please sign in to comment.