Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add publish-jvm.yml action #623

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
122 changes: 0 additions & 122 deletions .github/workflows/bump_version.yml

This file was deleted.

63 changes: 0 additions & 63 deletions .github/workflows/bump_version_on_main.yml

This file was deleted.

31 changes: 31 additions & 0 deletions .github/workflows/publish-jvm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish JVM package

on:
push:
branches:
- main
workflow_dispatch:


jobs:
publish:
name: Publish Maven Package
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: '17'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4

- name: Publish to Github Packages
run: ./gradlew publishJvmPublicationToGitHubPackagesRepository


6 changes: 2 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -222,13 +222,11 @@ npmPublish {
publishing {
repositories {
maven {
val github_username = System.getenv("github_username")
val github_token = System.getenv("github_token")
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/dydxprotocol/v4-abacus")
credentials {
username = github_username
password = github_token
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
Expand Down
4 changes: 0 additions & 4 deletions publish_android.sh

This file was deleted.

Loading