File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed
Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 11# Used when a commit is pushed to the repository
22# This makes use of caching for faster builds and uploads the resulting artifacts
3- name : build-commit
3+ name : build-commit-nopublish
44
55on :
66 push :
7- branches :
7+ branches-ignore :
88 - dev
99
1010jobs :
1111 build :
1212 runs-on : ubuntu-latest
13- environment : staging
1413
1514 steps :
1615 - name : Extract current branch name
4140 with :
4241 name : sodium-artifacts-${{ steps.ref.outputs.branch }}
4342 path : build/mods/*.jar
44-
45- - name : Publish Release Snapshot to CaffeineMC Maven
46- env :
47- ORG_GRADLE_PROJECT_caffeineMCMavenUsername : ${{ secrets.CAFFEINEMC_MAVEN_USERNAME }}
48- ORG_GRADLE_PROJECT_caffeineMCMavenPassword : ${{ secrets.CAFFEINEMC_MAVEN_PASSWORD }}
49- if : ${{ env.ORG_GRADLE_PROJECT_caffeineMCMavenUsername != '' && env.ORG_GRADLE_PROJECT_caffeineMCMavenPassword != '' }}
50- run : ./gradlew publishAllPublicationsToCaffeineMCRepository
Original file line number Diff line number Diff line change @@ -4,12 +4,13 @@ name: build-commit
44
55on :
66 push :
7- branches-ignore :
7+ branches :
88 - dev
99
1010jobs :
1111 build :
1212 runs-on : ubuntu-latest
13+ environment : staging
1314
1415 steps :
1516 - name : Extract current branch name
4041 with :
4142 name : sodium-artifacts-${{ steps.ref.outputs.branch }}
4243 path : build/mods/*.jar
44+
45+ - name : Publish Release Snapshot to CaffeineMC Maven
46+ env :
47+ ORG_GRADLE_PROJECT_caffeineMCMavenUsername : ${{ secrets.CAFFEINEMC_MAVEN_USERNAME }}
48+ ORG_GRADLE_PROJECT_caffeineMCMavenPassword : ${{ secrets.CAFFEINEMC_MAVEN_PASSWORD }}
49+ if : ${{ env.ORG_GRADLE_PROJECT_caffeineMCMavenUsername != '' && env.ORG_GRADLE_PROJECT_caffeineMCMavenPassword != '' }}
50+ run : ./gradlew publishAllPublicationsToCaffeineMCRepository
You can’t perform that action at this time.
0 commit comments