소유자가 repo secret 셋을 등록했다(2026-11-08): PACKAGE_TOKEN, SIGNING_KEY, SIGNING_PASSWORD. workflow·빌드·문서는 설계 05 7절의 PACKAGES_TOKEN(S 있음)을 읽고 있어서, 태그를 달면 release가 「token is not set」으로 멈췄을 것이다. 소유자에게 다시 등록을 부탁하지 않고 등록된 이름에 맞춘다. - release.yml env와 secret 참조, root build.gradle과 LibraryPublishingPlugin의 환경 변수 이름을 PACKAGE_TOKEN으로. - docs/work/release.md 1절을 「소유자가 둔 비밀 값」 표로 바꿨다(무엇, 바꾸는 법, 설계와 이름이 다른 이유, 서명 키 지문·만료). - README 「서명」에 공개 키(RSA 4096, 지문 92646CEA…F791F8AB, 2028-11-07 만료)와 확인 명령을 넣었다. 검증: scripts/verify.sh docs rc=0. 빌드 쪽은 이 PR의 pr.yml 실행.
This commit is contained in:
+3
-3
@@ -23,7 +23,7 @@ import org.gradle.plugins.signing.SigningExtension;
|
||||
*
|
||||
* <ul>
|
||||
* <li>{@code gitea}: {@code packagesUrl} from gradle.properties, authenticated with the {@code
|
||||
* Authorization: token <PACKAGES_TOKEN>} header. Gitea's job token cannot publish packages,
|
||||
* Authorization: token <PACKAGE_TOKEN>} header. Gitea's job token cannot publish packages,
|
||||
* so the token is a package-scoped personal access token in a repository secret; it is read
|
||||
* from the environment and never written to a file.
|
||||
* <li>{@code staging}: {@code build/staging-repository} under the root project. {@code
|
||||
@@ -78,7 +78,7 @@ public final class LibraryPublishingPlugin implements Plugin<Project> {
|
||||
|
||||
Provider<String> packagesUrl = project.getProviders().gradleProperty("packagesUrl");
|
||||
Provider<String> repositoryUrl = project.getProviders().gradleProperty("repositoryUrl");
|
||||
Provider<String> token = project.getProviders().environmentVariable("PACKAGES_TOKEN");
|
||||
Provider<String> token = project.getProviders().environmentVariable("PACKAGE_TOKEN");
|
||||
|
||||
PublishingExtension publishing = project.getExtensions().getByType(PublishingExtension.class);
|
||||
MavenPublication publication =
|
||||
@@ -166,7 +166,7 @@ public final class LibraryPublishingPlugin implements Plugin<Project> {
|
||||
}
|
||||
if (token.getOrElse("").isBlank()) {
|
||||
throw new GradleException(
|
||||
"PACKAGES_TOKEN is not set; Gitea's job token cannot publish packages.");
|
||||
"PACKAGE_TOKEN is not set; Gitea's job token cannot publish packages.");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user