File tree Expand file tree Collapse file tree 5 files changed +22
-80
lines changed Expand file tree Collapse file tree 5 files changed +22
-80
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- name : Deploy
1+ name : Deploy Snapshot
22on :
33 push :
4- tags : [ 'v*' ]
4+ branches : [ 'basepatches' ]
5+ paths-ignore :
6+ - ' license/*'
7+ - ' readme.md'
8+ - ' .gitignore'
9+ - ' .gitattributes'
10+ - ' .editorconfig'
511
612jobs :
713 deploy :
8- name : Deploy
14+ name : Deploy Snapshot
915 runs-on : ' ubuntu-latest'
1016 steps :
11- - uses : actions/checkout@v3
12- - uses : actions/setup-java@v3
17+ - uses : actions/checkout@v5
18+ - uses : actions/setup-java@v5
1319 with :
1420 java-version : 17
1521 distribution : ' temurin'
1622 - uses : gradle/wrapper-validation-action@v2
17- - uses : gradle/gradle-build-action@v2
18- name : Deploy release
19- with :
20- arguments : build publish --no-daemon --stacktrace
23+ - name : Deploy Version
24+ run : ./gradlew publishAllPublicationsToCanvasmcRepository
2125 env :
22- ORG_GRADLE_PROJECT_paperUsername : ${{ secrets.DEPLOY_USER }}
23- ORG_GRADLE_PROJECT_paperPassword : ${{ secrets.DEPLOY_PASS }}
24- - name : Parse tag
25- id : vars
26- run : echo tag=${GITHUB_REF#refs/*/} >> $GITHUB_OUTPUT
27- - name : Create release and changelog
28- uses :
MC-Machinations/[email protected] 29- with :
30- token : ${{ secrets.GITHUB_TOKEN }}
31- title : restamp ${{ steps.vars.outputs.tag }}
32- files : |
33- build/libs/*.jar
26+ PUBLISH_USER : ${{ secrets.PUBLISH_USER }}
27+ PUBLISH_TOKEN : ${{ secrets.PUBLISH_TOKEN }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -13,14 +13,9 @@ tasks.jar {
1313
1414publishing {
1515 repositories {
16- val url = if (project.version.toString().endsWith(" -SNAPSHOT" )) {
17- " https://repo.papermc.io/repository/maven-snapshots/"
18- } else {
19- " https://repo.papermc.io/repository/maven-releases/"
20- }
21- maven(url) {
22- credentials(PasswordCredentials ::class )
23- name = " paper"
16+ maven {
17+ name = " canvasmc"
18+ url = uri(" https://maven.canvasmc.io/snapshots" )
2419 }
2520 }
2621
Original file line number Diff line number Diff line change 11pluginManagement {
22 repositories {
33 gradlePluginPortal()
4+ maven {
5+ name = " canvasmc"
6+ url = uri(" https://maven.canvasmc.io/snapshots" )
7+ }
48 }
59 plugins {
610 id ' com.github.johnrengelman.shadow' version ' 8.1.1'
You can’t perform that action at this time.
0 commit comments