Skip to content

Commit

Permalink
GitHub Action Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hedgecrw committed Apr 17, 2024
1 parent 95301a7 commit 24326e7
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 14 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/build_snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,22 @@ jobs:

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
env:
LIB_VERSION: ${{ steps.gitversion.outputs.version }}-SNAPSHOT
MAVEN_USERNAME: ${{ secrets.OSS_SONATYPE_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSS_SONATYPE_PASSWORD }}
SIGNING_KEY: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
SIGNING_PASSWORD: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
with:
gradle-version: 8.1.1

- name: Build SNAPSHOT using Gradle
run: gradle build
env:
LIB_VERSION: ${{ steps.gitversion.outputs.version }}-SNAPSHOT

- name: Publish SNAPSHOT using Gradle
run: gradle publish
env:
LIB_VERSION: ${{ steps.gitversion.outputs.version }}-SNAPSHOT
MAVEN_USERNAME: ${{ secrets.OSS_SONATYPE_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSS_SONATYPE_PASSWORD }}
SIGNING_KEY: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
SIGNING_PASSWORD: ${{ secrets.MAVEN_GPG_PASSPHRASE }}

- name: Check out Wiki source data
uses: actions/checkout@v4
Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/release_to_maven_central.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,22 @@ jobs:

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
env:
LIB_VERSION: ${{ steps.gitversion.outputs.version }}
MAVEN_USERNAME: ${{ secrets.OSS_SONATYPE_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSS_SONATYPE_PASSWORD }}
SIGNING_KEY: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
SIGNING_PASSWORD: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
with:
gradle-version: 8.1.1

- name: Build library using Gradle
run: gradle build
env:
LIB_VERSION: ${{ steps.gitversion.outputs.version }}

- name: Publish library using Gradle
run: gradle publish
env:
LIB_VERSION: ${{ steps.gitversion.outputs.version }}
MAVEN_USERNAME: ${{ secrets.OSS_SONATYPE_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSS_SONATYPE_PASSWORD }}
SIGNING_KEY: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
SIGNING_PASSWORD: ${{ secrets.MAVEN_GPG_PASSPHRASE }}

- name: Generate changelog
id: changelog
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/update_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ jobs:

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
env:
LIB_VERSION: ${{ steps.gitversion.outputs.version }}
with:
gradle-version: 8.1.1

- name: Build library using Gradle
run: gradle build
env:
LIB_VERSION: ${{ steps.gitversion.outputs.version }}

- name: Check out library documentation
uses: actions/checkout@v4
Expand Down

0 comments on commit 24326e7

Please sign in to comment.