Skip to content

Commit

Permalink
build: hangar api key constistent name
Browse files Browse the repository at this point in the history
  • Loading branch information
kernitus committed Oct 20, 2024
1 parent 684e481 commit bd38b92
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,15 @@ jobs:
with:
fetch-depth: 0

- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1

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

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
Expand All @@ -42,6 +46,6 @@ jobs:
- name: Publish Snapshot to Hangar
if: ${{ github.event_name == 'push' && github.event.pull_request == null }}
env:
HANGAR_TOKEN: ${{ secrets.HANGAR_API_TOKEN }}
HANGAR_API_TOKEN: ${{ secrets.HANGAR_API_TOKEN }}
run: |
./gradlew publishPluginPublicationToHangar
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ hangarPublish {
version.set(suffixedVersion)
channel.set(if (isRelease) "Release" else "Snapshot")
id.set("OldCombatMechanics")
apiKey.set(System.getenv("HANGAR_TOKEN"))
apiKey.set(System.getenv("HANGAR_API_TOKEN"))
changelog.set(System.getenv("HANGAR_CHANGELOG") ?: changelogContent)
platforms {
register(Platforms.PAPER) {
Expand Down

0 comments on commit bd38b92

Please sign in to comment.