Skip to content

Commit

Permalink
fix: enable publication for GH Packages
Browse files Browse the repository at this point in the history
Signed-off-by: Mariell Hoversholm <[email protected]>
  • Loading branch information
Proximyst authored and Mariell Hoversholm committed Dec 3, 2021
1 parent 5637855 commit da9dff3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/deploy-github-packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ jobs:
java-version: '16'
distribution: temurin
- name: Deploy
run: ./gradlew deployToGithubPackages
run: ./gradlew publishAllPublicationsToGithubPackagesRepository
env:
GITHUB_PACKAGES: true
GITHUB_PACKAGES_USERNAME: ${{ github.actor }}
GITHUB_PACKAGES_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ indra {

publishing {
repositories {
if (java.lang.Boolean.getBoolean("GITHUB_PACKAGES")) {
if (System.getenv("GITHUB_PACKAGES") != null) {
maven {
name = "GithubPackages"
url = uri("https://maven.pkg.github.com/KyoriPowered/moonshine")
Expand Down

0 comments on commit da9dff3

Please sign in to comment.