Skip to content

Commit

Permalink
Update permissions and publications
Browse files Browse the repository at this point in the history
  • Loading branch information
oluiscabral committed Dec 12, 2024
1 parent b6c4d2c commit 5b1ea61
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ on:
- "*"

jobs:
build:
release:
runs-on: ubuntu-latest
permissions:
contents: write
contents: read
packages: write
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -52,5 +53,4 @@ jobs:
run: gradle publish
working-directory: ./java
env:
GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9 changes: 5 additions & 4 deletions java/lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ apply plugin: 'com.android.library'
apply plugin: 'pl.allegro.tech.build.axion-release'
apply plugin: 'org.mozilla.rust-android-gradle.rust-android'

version = scmVersion.version
group = "dev.arkbuilders.core"

android {
ndkVersion '28.0.12433566'
namespace 'dev.arkbuilders.core'
Expand Down Expand Up @@ -65,9 +62,13 @@ tasks.configureEach { task ->
}
}

def libVersion = scmVersion.version
publishing {
publications {
Maven(MavenPublication) {
release(MavenPublication) {
groupId = 'dev.arkbuilders'
artifactId = 'core'
version = libVersion
afterEvaluate {
from components.release
}
Expand Down

0 comments on commit 5b1ea61

Please sign in to comment.