From 28d4eea292a5038cf15c988f800728835a1d2de5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A5=93?= Date: Fri, 16 Aug 2024 13:01:13 +0800 Subject: [PATCH] Update Maven Publishing (#1) --- .github/workflows/build-and-test.yml | 4 ++-- .github/workflows/publish-javadoc.yml | 1 + .github/workflows/release-tags.yml | 1 + build.gradle.kts | 10 ++++++++++ 4 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 2c2a5ee..c8ed765 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -3,9 +3,9 @@ name: Build and test on: pull_request: - branches: [ master, main ] + branches: [ master, master-fork, main ] push: - branches: [ master, main ] + branches: [ master, master-fork, main ] jobs: build-and-test: diff --git a/.github/workflows/publish-javadoc.yml b/.github/workflows/publish-javadoc.yml index 302316d..827eb97 100644 --- a/.github/workflows/publish-javadoc.yml +++ b/.github/workflows/publish-javadoc.yml @@ -4,6 +4,7 @@ on: push: branches: - master + - master-fork tags: - '*' diff --git a/.github/workflows/release-tags.yml b/.github/workflows/release-tags.yml index a3802fa..64a9907 100644 --- a/.github/workflows/release-tags.yml +++ b/.github/workflows/release-tags.yml @@ -2,6 +2,7 @@ name: Release tagged build on: + workflow_dispatch: push: tags: [ '*' ] diff --git a/build.gradle.kts b/build.gradle.kts index 4852113..df9a0e6 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -213,6 +213,7 @@ publishing { } repositories { +/* maven { url = uri("https://nexus.gtnewhorizons.com/repository/releases/") credentials { @@ -220,6 +221,15 @@ publishing { password = System.getenv("MAVEN_PASSWORD") ?: "NONE" } } +*/ + maven { + name = "vogRepository" + url = uri("https://mvn.taskeren.cn/snapshots") + credentials { + username = System.getenv("MAVEN_USER") ?: "NONE" + password = System.getenv("MAVEN_PASSWORD") ?: "NONE" + } + } } }