Skip to content

Commit

Permalink
Fix up autopublishing (#16)
Browse files Browse the repository at this point in the history
* fix machete not being enabled on publish

* change permissions to allow creating releases
  • Loading branch information
Erdragh authored Oct 11, 2023
1 parent 85163ef commit 7802a29
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ on:
pull_request:
branches: [ "main", "develop" ]

permissions:
contents: write

jobs:
build:
strategy:
Expand Down
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7802a29

Please sign in to comment.