mirror of
https://github.com/fankes/moshi.git
synced 2025-10-18 23:49:21 +08:00
Merge pull request #1377 from Goooler/action
Disable publish action in forked repository
This commit is contained in:
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -46,7 +46,7 @@ jobs:
|
||||
run: ./gradlew build check --stacktrace
|
||||
|
||||
- name: Publish (default branch only)
|
||||
if: github.ref == 'refs/heads/master' && matrix.java-version == '8'
|
||||
if: github.repository == 'square/moshi' && github.ref == 'refs/heads/master' && matrix.java-version == '8'
|
||||
run: ./gradlew uploadArchives
|
||||
env:
|
||||
ORG_GRADLE_PROJECT_SONATYPE_NEXUS_USERNAME: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
|
||||
|
Reference in New Issue
Block a user