Skip to content

Commit

Permalink
try publish to github packages
Browse files Browse the repository at this point in the history
  • Loading branch information
eaxdev committed Jun 6, 2020
1 parent e532819 commit 8dd6b1f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/gradle-ci-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
gpg --quiet --batch --yes --decrypt --passphrase="${{secrets.SECRET_PASSPHRASE}}" \
--output secret.gpg publish_key.gpg
echo "::set-env name=RELEASE_VERSION::${GITHUB_REF:11}"
echo "::set-env name=GITHUB_TOKEN::${{secrets.GITHUB_TOKEN}}"
- name: Publish with Gradle
uses: eskatos/gradle-command-action@v1
with:
Expand Down
9 changes: 8 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
plugins {
id 'maven'
id 'java-library'
id 'maven-publish'
id 'signing'
Expand Down Expand Up @@ -63,6 +62,14 @@ publishing {
}
}
}
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/eaxdev/JsonSQL4J")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("eaxdev")
password = project.findProperty("gpr.key") ?: System.getenv("GITHUB_TOKEN")
}
}
}
}

Expand Down

0 comments on commit 8dd6b1f

Please sign in to comment.