Skip to content

Commit

Permalink
ci: update GitHub workflows
Browse files Browse the repository at this point in the history
- Migrate from `GRADLE_ENTERPRISE_ACCESS_KEY` to `DEVELOCITY_ACCESS_KEY`.
- Use `--continue` on build and test tasks to report all errors.
- Use `--no-build-cache` on publish to prevent caching issues.
- Remove `SECRING_FILE` environment variable from `publishToSonatype` as it's not needed.
- Update cog emoji in step name.
  • Loading branch information
matrei committed Jan 31, 2025
1 parent 1854e10 commit 738da03
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ jobs:
- name: "🐘 Setup Gradle"
uses: gradle/actions/setup-gradle@v4
with:
develocity-access-key: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
- name: "🔨 Build project"
id: build
run: ./gradlew build
run: ./gradlew build --continue
- name: "🏃‍♀️Run functional tests"
run: |
cd spock-container-test-app
./gradlew check
./gradlew check --continue
publish:
if: github.event_name == 'push'
runs-on: ubuntu-latest
Expand All @@ -48,7 +48,7 @@ jobs:
- name: "🐘 Setup Gradle"
uses: gradle/actions/setup-gradle@v4
with:
develocity-access-key: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
- name: "📤 Publish Snapshot version to Artifactory (repo.grails.org)"
env:
ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ jobs:
- name: "🐘 Setup Gradle"
uses: gradle/actions/setup-gradle@v4
with:
develocity-access-key: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
- name: "📝 Store the current release version"
id: release_version
run: echo "release_version=${GITHUB_REF:11}" >> $GITHUB_OUTPUT
- name: "⚙ Run pre-release"
- name: " Run pre-release"
uses: micronaut-projects/github-actions/pre-release@master
- name: "🔐 Generate key file for artifact signing"
env:
Expand All @@ -38,12 +38,12 @@ jobs:
SONATYPE_STAGING_PROFILE_ID: ${{ secrets.NEXUS_PUBLISH_STAGING_PROFILE_ID }}
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
SIGNING_PASSPHRASE: ${{ secrets.SIGNING_PASSPHRASE }}
SECRING_FILE: ${{ secrets.SECRING_FILE }}
run: >
./gradlew
-Psigning.secretKeyRingFile=${{ github.workspace }}/secring.gpg
publishToSonatype
closeAndReleaseSonatypeStagingRepository
--no-build-cache
-Psigning.secretKeyRingFile=${{ github.workspace }}/secring.gpg
- name: "📖 Generate Documentation"
id: docs
if: steps.publish.outcome == 'success'
Expand Down

0 comments on commit 738da03

Please sign in to comment.