Skip to content

Commit

Permalink
Added publication of usvm-python-commons
Browse files Browse the repository at this point in the history
  • Loading branch information
tochilinak committed Feb 29, 2024
1 parent 1c01219 commit 0b8aff0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/gradle-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,17 @@ jobs:
- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: :usvm-python:usvm-python-runner:build -Pversion=${{ steps.commithash.outputs.sha_short }}
arguments: :usvm-python:usvm-python-runner:build :usvm-python:usvm-python-common:build -Pversion=${{ steps.commithash.outputs.sha_short }}
env:
GITHUB_ACTOR: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# The USERNAME and TOKEN need to correspond to the credentials environment variables used in
# the publishing section of your build.gradle
- name: Publish to GitHub Packages
- name: Publish usvm-python-runner to GitHub Packages
uses: gradle/gradle-build-action@v2
with:
arguments: :usvm-python:usvm-python-runner:publish -Pversion=${{ steps.commithash.outputs.sha_short }}
arguments: :usvm-python:usvm-python-runner:publish :usvm-python:usvm-python-common:publish -Pversion=${{ steps.commithash.outputs.sha_short }}
env:
GITHUB_ACTOR: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21 changes: 21 additions & 0 deletions usvm-python/usvm-python-commons/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
plugins {
id("usvm.kotlin-conventions")
`maven-publish`
}

publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/UnitTestBot/usvm")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
publications {
create<MavenPublication>("jar") {
from(components["java"])
groupId = "org.usvm"
artifactId = project.name
}
}
}

0 comments on commit 0b8aff0

Please sign in to comment.