From 4ea49a99c67a5a1b85e000ffe13d7afb44f84346 Mon Sep 17 00:00:00 2001 From: Erdragh Date: Wed, 11 Oct 2023 23:16:36 +0200 Subject: [PATCH 1/2] fix machete not being enabled on publish --- build.gradle | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 2f0d976..6ef331d 100644 --- a/build.gradle +++ b/build.gradle @@ -97,7 +97,8 @@ jar { machete { // Only optimize published releases - enabled = Boolean.getBoolean("PUBLISHING") + var publishingEnv = System.getenv("PUBLISHING") + enabled = publishingEnv != null && publishingEnv.toLowerCase() == "true" } // configure the maven publication From cd266018633e66646c473be99a860e4d15c0ddad Mon Sep 17 00:00:00 2001 From: Erdragh Date: Wed, 11 Oct 2023 23:19:59 +0200 Subject: [PATCH 2/2] change permissions to allow creating releases --- .github/workflows/build.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d88291e..0b55e5e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,6 +19,9 @@ on: pull_request: branches: [ "main", "develop" ] +permissions: + contents: write + jobs: build: strategy: