Skip to content

Commit

Permalink
ci: add develocity key explicitly
Browse files Browse the repository at this point in the history
The `DEVELOCITY_ACCESS_KEY` environment variable should be set by the `setup-gradle` action. However, it does not seem to work in this repo. Trying to set it explicitly on each step.
  • Loading branch information
matrei committed Dec 22, 2024
1 parent c6eef17 commit e609942
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,14 @@ jobs:
- name: "🏃 Run Tests"
if: github.event_name == 'pull_request'
id: tests
env:
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
run: ./gradlew check
- name: "🔨 Build project"
if: github.event_name == 'push'
id: build
env:
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
run: ./gradlew build
- name: "📄 Publish Test Report"
if: steps.build.outcome == 'failure' || steps.tests.outcome == 'failure'
Expand All @@ -56,6 +60,8 @@ jobs:
- name: "✍️ Generate Documentation"
id: docs
if: success() && github.event_name == 'push' && matrix.java == '17'
env:
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
run: ./gradlew docs
- name: "📤 Publish to Github Pages"
if: steps.publish.outcome == 'success' && github.event_name == 'push' && matrix.java == '17'
Expand Down

0 comments on commit e609942

Please sign in to comment.