Skip to content

Commit

Permalink
[Android] fix nightly publish failure (#2001)
Browse files Browse the repository at this point in the history
  • Loading branch information
lanking520 authored Sep 8, 2022
1 parent d198698 commit e885b6d
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/publish_android_packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,22 @@ jobs:
restore-keys: |
${{ runner.os }}-gradle-
- name: publish android core and pytorch-native to sonatype
if: ${{ github.event.inputs.mode == '' || github.event.inputs.mode == 'snapshot' }}
working-directory: android
run: |
./gradlew :pytorch-native:assemble
./gradlew publish -P${{ github.event.inputs.mode }}
./gradlew publish -Psnapshot
env:
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.ORG_GRADLE_PROJECT_signingKey }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.ORG_GRADLE_PROJECT_signingPassword }}
ORG_GRADLE_PROJECT_ossrhUsername: ${{ secrets.ORG_GRADLE_PROJECT_ossrhUsername }}
ORG_GRADLE_PROJECT_ossrhPassword: ${{ secrets.ORG_GRADLE_PROJECT_ossrhPassword }}
- name: publish android core and pytorch-native to sonatype
if: ${{ github.event.inputs.mode == 'staging' }}
working-directory: android
run: |
./gradlew :pytorch-native:assemble
./gradlew publish -Pstaging
env:
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.ORG_GRADLE_PROJECT_signingKey }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.ORG_GRADLE_PROJECT_signingPassword }}
Expand Down

0 comments on commit e885b6d

Please sign in to comment.