Skip to content

Commit a6db15b

Browse files
committed
fixup workflows
1 parent efbe43b commit a6db15b

File tree

5 files changed

+22
-80
lines changed

5 files changed

+22
-80
lines changed

.github/workflows/deploy-snapshot.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/workflows/deploy.yml

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,27 @@
1-
name: Deploy
1+
name: Deploy Snapshot
22
on:
33
push:
4-
tags: [ 'v*' ]
4+
branches: [ 'basepatches' ]
5+
paths-ignore:
6+
- 'license/*'
7+
- 'readme.md'
8+
- '.gitignore'
9+
- '.gitattributes'
10+
- '.editorconfig'
511

612
jobs:
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 }}

.github/workflows/test.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

build.gradle.kts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,9 @@ tasks.jar {
1313

1414
publishing {
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

settings.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
pluginManagement {
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'

0 commit comments

Comments
 (0)