Skip to content

Commit

Permalink
Migrate to shared-actions v2 (#143)
Browse files Browse the repository at this point in the history
Co-authored-by: hatz <[email protected]>
  • Loading branch information
cloud-janitors-figure and ahatzz11 authored Sep 11, 2024
1 parent 92d7504 commit 125bae6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ jobs:
fetch-depth: 0

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
uses: gradle/actions/setup-gradle@v4
with:
cache-read-only: ${{ github.ref != 'refs/heads/main' }}
gradle-home-cache-cleanup: true
cache-cleanup: true
gradle-home-cache-includes: |
caches
notifications
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Release
on:
workflow_dispatch:
inputs:
versionModifier:
version-modifier:
description: "Version Modifier"
default: "minor"
type: choice
Expand All @@ -12,7 +12,7 @@ on:
- "patch"
- "minor"
- "major"
skipPublishing:
skip-publishing:
description: "Skip artifact publishing"
required: false
type: boolean
Expand Down Expand Up @@ -55,7 +55,7 @@ jobs:
echo "githubReleaseCommand=githubRelease" >> $GITHUB_OUTPUT
fi
env:
SKIP_PUBLISH: ${{ github.event.inputs.skipPublishing }}
SKIP_PUBLISH: ${{ github.event.inputs.skip-publishing }}

- name: Install gpg secret key
run: |
Expand All @@ -65,10 +65,10 @@ jobs:
echo -n "${{ secrets.OSSRH_GPG_SECRET_KEY }}" | base64 --decode > release.gpg
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
uses: gradle/actions/setup-gradle@v4
with:
cache-read-only: ${{ github.ref != 'refs/heads/main' }}
gradle-home-cache-cleanup: true
cache-cleanup: true
gradle-home-cache-includes: |
caches
notifications
Expand All @@ -78,7 +78,7 @@ jobs:
- name: Build and Release Main
run: |
./gradlew \
-Psemver.modifier=${{ github.event.inputs.versionModifier }} \
-Psemver.modifier=${{ github.event.inputs.version-modifier }} \
build ${{ steps.build_parameters.outputs.publishCommand }} \
${{ steps.build_parameters.outputs.githubReleaseCommand }} \
-Psigning.keyId=${{ secrets.OSSRH_GPG_SECRET_KEY_ID }} \
Expand Down

0 comments on commit 125bae6

Please sign in to comment.