Skip to content

Commit 7daf801

Browse files
committed
Use Java GH actions for release
1 parent a8e017b commit 7daf801

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed
-316 Bytes
Binary file not shown.

.github/release/smallrye-sign.asc.gpg

-6.34 KB
Binary file not shown.

.github/workflows/release.yml

+11-5
Original file line numberDiff line numberDiff line change
@@ -30,24 +30,30 @@ jobs:
3030
with:
3131
distribution: 'temurin'
3232
java-version: 11
33+
server-id: 'oss.sonatype'
34+
server-username: 'MAVEN_DEPLOY_USERNAME'
35+
server-password: 'MAVEN_DEPLOY_TOKEN'
36+
gpg-private-key: ${{secrets.MAVEN_GPG_PRIVATE_KEY}}
37+
gpg-passphrase: 'MAVEN_GPG_PASSPHRASE'
3338

3439
- uses: actions/setup-python@v5
3540
with:
3641
python-version: '3.9'
3742

3843
- name: maven release ${{steps.metadata.outputs.current-version}}
44+
env:
45+
MAVEN_DEPLOY_USERNAME: ${{secrets.MAVEN_DEPLOY_USERNAME}}
46+
MAVEN_DEPLOY_TOKEN: ${{secrets.MAVEN_DEPLOY_TOKEN}}
47+
MAVEN_GPG_PASSPHRASE: ${{secrets.MAVEN_GPG_PASSPHRASE}}
3948
run: |
4049
java -version
41-
gpg --quiet --batch --yes --decrypt --passphrase="${{secrets.SECRET_PASSPHRASE}}" --output smallrye-sign.asc .github/release/smallrye-sign.asc.gpg
42-
gpg --quiet --batch --yes --decrypt --passphrase="${{secrets.SECRET_PASSPHRASE}}" --output maven-settings.xml .github/release/maven-settings.xml.gpg
43-
gpg --fast-import --no-tty --batch --yes smallrye-sign.asc
4450
git config --global user.name "SmallRye CI"
4551
git config --global user.email "smallrye@googlegroups.com"
4652
git checkout -b release
47-
mvn -B release:prepare -Prelease,coverage -DreleaseVersion=${{steps.metadata.outputs.current-version}} -DdevelopmentVersion=${{steps.metadata.outputs.next-version}} -s maven-settings.xml
53+
mvn -B release:prepare -Prelease,coverage -DreleaseVersion=${{steps.metadata.outputs.current-version}} -DdevelopmentVersion=${{steps.metadata.outputs.next-version}}
4854
git checkout ${{github.base_ref}}
4955
git rebase release
50-
mvn -B release:perform -Prelease -s maven-settings.xml
56+
mvn -B release:perform -Prelease
5157
git push
5258
git push --tags
5359

0 commit comments

Comments
 (0)