From d2cf491ffc6350fe1d8490bdffd028e1fa1874d6 Mon Sep 17 00:00:00 2001 From: Pun Butrach Date: Sun, 14 Dec 2025 22:20:47 +0700 Subject: [PATCH 1/2] docs: Use American spelling (#389) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 05246ee4..87a90f53 100644 --- a/README.md +++ b/README.md @@ -117,9 +117,9 @@ you can follow the [ReVanced documentation](https://github.com/ReVanced/revanced The documentation contains the fundamentals of ReVanced Patcher and how to use ReVanced Patcher to create patches. You can find it [here](https://github.com/ReVanced/revanced-patcher/tree/main/docs). -## 📜 Licence +## 📜 License -ReVanced Patcher is licensed under the GPLv3 license. Please see the [licence file](LICENSE) for more information. +ReVanced Patcher is licensed under the GPLv3 license. Please see the [license file](LICENSE) for more information. [tl;dr](https://www.tldrlegal.com/license/gnu-general-public-license-v3-gpl-3) you may copy, distribute and modify ReVanced Patcher as long as you track changes/dates in source files. Any modifications to ReVanced Patcher must also be made available under the GPL, along with build & install instructions. From 9f4bc1eba9dd4a20f4f2a565f1c2b84a1ea517e2 Mon Sep 17 00:00:00 2001 From: Pun Butrach Date: Mon, 29 Dec 2025 00:35:55 +0700 Subject: [PATCH 2/2] build: Use Gradle credentials system --- .github/workflows/build_pull_request.yml | 3 ++- .github/workflows/release.yml | 3 ++- build.gradle.kts | 11 +++-------- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build_pull_request.yml b/.github/workflows/build_pull_request.yml index ff601f21..e7475f59 100644 --- a/.github/workflows/build_pull_request.yml +++ b/.github/workflows/build_pull_request.yml @@ -21,5 +21,6 @@ jobs: - name: Build env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + ORG_GRADLE_PROJECT_githubPackagesUsername: ${{ env.GITHUB_ACTOR }} + ORG_GRADLE_PROJECT_githubPackagesPassword: ${{ secrets.GITHUB_TOKEN }} run: ./gradlew build --no-daemon diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 364cdf7c..6b3708cc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,7 +28,8 @@ jobs: - name: Build env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + ORG_GRADLE_PROJECT_githubPackagesUsername: ${{ env.GITHUB_ACTOR }} + ORG_GRADLE_PROJECT_githubPackagesPassword: ${{ secrets.GITHUB_TOKEN }} run: ./gradlew build clean - name: Setup Node.js diff --git a/build.gradle.kts b/build.gradle.kts index 08cabdca..047cc6f6 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -26,12 +26,10 @@ repositories { mavenCentral() google() maven { + name = "GitHubPackages" // A repository must be specified for some reason. "registry" is a dummy. url = uri("https://maven.pkg.github.com/revanced/registry") - credentials { - username = project.findProperty("gpr.user") as String? ?: System.getenv("GITHUB_ACTOR") - password = project.findProperty("gpr.key") as String? ?: System.getenv("GITHUB_TOKEN") - } + credentials(PasswordCredentials::class) } } @@ -72,10 +70,7 @@ publishing { maven { name = "GitHubPackages" url = uri("https://maven.pkg.github.com/revanced/revanced-patcher") - credentials { - username = System.getenv("GITHUB_ACTOR") - password = System.getenv("GITHUB_TOKEN") - } + credentials(PasswordCredentials::class) } }