Open cmoulliard opened 1 week ago
As our job definition is similar to this project - https://github.com/metacosm/power-server/blob/main/.github/workflows/release.yml:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
cache: 'maven'
server-id: central
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
- name: Configure Git author
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
- name: Maven release ${{steps.metadata.outputs.current-version}}
run: |
mvn -B release:prepare -Prelease -Darguments="-DskipTests" -DreleaseVersion=${{steps.metadata.outputs.current-version}} -DdevelopmentVersion=${{steps.metadata.outputs.next-version}}
mvn -B release:perform -Darguments="-DperformRelease -DskipTests" -DperformRelease -Prelease
env:
MAVEN_USERNAME: "${{ secrets.OSSRH_USERNAME }}"
MAVEN_PASSWORD: "${{ secrets.OSSRH_TOKEN }}"
MAVEN_GPG_PASSPHRASE: "${{ secrets.GPG_PASSPHRASE }}"
- name: Push changes to ${{github.base_ref}} branch
run: |
git push
git push origin ${{steps.metadata.outputs.current-version}}
then I suspect that either we missed to pass a secret or we configured a wrong value.
As the secret names match the secrets declared within the job, can you then verify if the values are correct ?
@BarDweller
We shouldn't be needing a secret for token or ssh keys. We have tons of example working without one:
Issue
This job fails: https://github.com/snowdrop/java-buildpack-client/actions/runs/9582846769 when the step
Maven release ...
is executedI suspect that we missed to pass the SSH key able to push on git as documented here: https://stackoverflow.com/questions/66944752/how-do-i-push-a-release-to-github-with-the-maven-release-plugin