Skip to content

Commit

Permalink
Fix publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
AlphaKR93 committed Nov 3, 2024
1 parent 6463eb2 commit fb33aeb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
release:
name: Release Plazma
name: Release Plazmaclip
strategy:
matrix:
base_jdk: [21]
Expand All @@ -30,11 +30,10 @@ jobs:
version: latest
cache: 'gradle'

- name: Configure Git
run: git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" && git config --global user.name "github-actions[bot]"

- name: Publish Packages
if: ${{ github.ref_name == 'master' }}
run: |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
export GITHUB_USERNAME=${{ github.repository_owner }}
./gradlew publish --info --stacktrace
22 changes: 11 additions & 11 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,8 @@ tasks {
}
}

publishing.publications {
repositories.maven("https://maven.pkg.github.com/PlazmaMC/Plazmaclip") {
name = "githubPackage"

credentials {
username = System.getenv("GITHUB_USERNAME")
password = System.getenv("GITHUB_TOKEN")
}
}

register<MavenPublication>("maven") {
publishing {
publications.register<MavenPublication>("maven") {
groupId = project.group.toString()
version = project.version.toString()
artifactId = "plazmaclip"
Expand Down Expand Up @@ -93,6 +84,15 @@ publishing.publications {
}
}
}

repositories.maven("https://maven.pkg.github.com/PlazmaMC/Plazmaclip") {
name = "githubPackage"

credentials {
username = System.getenv("GITHUB_USERNAME")
password = System.getenv("GITHUB_TOKEN")
}
}
}

signing {
Expand Down

0 comments on commit fb33aeb

Please sign in to comment.