From 8c2ca423125dea3341816bb4a27e0e435df3d5a2 Mon Sep 17 00:00:00 2001 From: Roberto Cortez Date: Fri, 12 Jul 2024 15:14:51 +0100 Subject: [PATCH] Use Java GH actions for release --- .github/release/maven-settings.xml.gpg | Bin 316 -> 0 bytes .github/release/smallrye-sign.asc.gpg | Bin 6497 -> 0 bytes .github/workflows/release.yml | 16 +++++++++++----- 3 files changed, 11 insertions(+), 5 deletions(-) delete mode 100644 .github/release/maven-settings.xml.gpg delete mode 100644 .github/release/smallrye-sign.asc.gpg diff --git a/.github/release/maven-settings.xml.gpg b/.github/release/maven-settings.xml.gpg deleted file mode 100644 index d25987610a91c8967d2c8748cab9b083afbba74a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 316 zcmV-C0mJ@`4Fm}T0`_T`vYNd<9@5glY5_?+)TU&p@xbLZKlf`UH+_n1kn(Eyzm$SM}2 zL%Mz{!8l0$ld6DvB?|fl_loCE%K3~$E^V$6BR^j=7cHP_a`Qb-Aa=>q;!CH!Ec~Im zoWIJ?C>2B?!3C_W;AbBY-aB4QlVuSFn8d@0mIp}JzuhY3eD#9VMOkQQ&2|BO-jhx^ zmCrk)8oEDji=r%;NNl4IGG2nG(&*IujWV>1~DSjBKTtl9JuMo8Lz8 OTLOm%C^$M3Ge#Z<@|NHL diff --git a/.github/release/smallrye-sign.asc.gpg b/.github/release/smallrye-sign.asc.gpg deleted file mode 100644 index ffd7b0f07da56e837c901173bde53f6f4fbc5be1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6497 zcmV-n8J^~h4Fm}T0za2Xtv{hZH0jdp0gz(MXu0zuQ{|^Zb|8AXq77?)k_z4c+{N$iy^%tJ)!;Iw0kD zH}0hgLVK|ytQF+95d+?y<9#8b=|M+FaZQ9E%Oe0jJx>9;)$A$UIQNM|P)+LKVNE}t zc~9l`7~?Jo9=Ib*C3Y!H(9)1||0!Y8Pn&m1lq{Y_7_zfU$$k*3o|u`RAjWvW1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sgS+)&JAj{+i(q^s>fhI$0d>jX*2v`ge;FV+AJ=xMZRDZhKY{Pnrvc!J?f zw7h|A&!Z0-xddwAhKR;)@<*d-7Qp-I1 z;{8t4z8>iLklOAN{<+PnCuFH1HpExTO!04bIGFP_VgH(aj{xp9*~jRhLj;Zv zR|F8~Zw2Lb5{#YVvPxBlu&tvVq-|F|z5iDxJKhtRE+}YfB_%2A>Vh?WyQJ!(lGO$E z!C^Hq4wGBy`a^&&+$52?QC|LiVZ0*(X|@)9zoLcHwhU4D4mZ12+U>VmP?88&8;k=ac<K z>a_XZ^16K`2h-u|*i#E|)CSC8#H(Xb!MYAv;c8&y+;Ig7uxAQpj!$|yRQ@lW<)mo1 zSoDR!DJ0u!{&yWi?Xl-t$NNJN$Ko|RWnqKCnNV4k%`@1-@^;zGVIr_QqX|NSVk%K& zMfJa7H1n3Z>!I^$7nRVa_6oMK;E{J>acB|x*W_kVeU%ZNIc;r%q;BQnQM0!F8u6)gD31O>auK=#1 zd)}%vk(2<2X3q)1vOJ8mnqApLYVip1Up=ONyvZthJzr@H_}S z{#1jrcdof~@AX3GZ2zs+daf!Zu6Bm&pFVM7dPXW|26ACc1YPE)aQV-ztmBx&6n^?? Hu$vxMDsQoM diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 29858b1..67b74f0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,20 +30,26 @@ jobs: with: distribution: 'temurin' java-version: 11 + server-id: 'oss.sonatype' + server-username: 'MAVEN_DEPLOY_USERNAME' + server-password: 'MAVEN_DEPLOY_TOKEN' + gpg-private-key: ${{secrets.MAVEN_GPG_PRIVATE_KEY}} + gpg-passphrase: 'MAVEN_GPG_PASSPHRASE' - name: maven release ${{steps.metadata.outputs.current-version}} + env: + MAVEN_DEPLOY_USERNAME: ${{secrets.MAVEN_DEPLOY_USERNAME}} + MAVEN_DEPLOY_TOKEN: ${{secrets.MAVEN_DEPLOY_TOKEN}} + MAVEN_GPG_PASSPHRASE: ${{secrets.MAVEN_GPG_PASSPHRASE}} run: | java -version - gpg --quiet --batch --yes --decrypt --passphrase="${{secrets.SECRET_PASSPHRASE}}" --output smallrye-sign.asc .github/release/smallrye-sign.asc.gpg - gpg --quiet --batch --yes --decrypt --passphrase="${{secrets.SECRET_PASSPHRASE}}" --output maven-settings.xml .github/release/maven-settings.xml.gpg - gpg --fast-import --no-tty --batch --yes smallrye-sign.asc git config --global user.name "SmallRye CI" git config --global user.email "smallrye@googlegroups.com" git checkout -b release - mvn -B release:prepare -Prelease,coverage -DreleaseVersion=${{steps.metadata.outputs.current-version}} -DdevelopmentVersion=${{steps.metadata.outputs.next-version}} -s maven-settings.xml + mvn -B release:prepare -Prelease,coverage -DreleaseVersion=${{steps.metadata.outputs.current-version}} -DdevelopmentVersion=${{steps.metadata.outputs.next-version}} git checkout ${{github.base_ref}} git rebase release - mvn -B release:perform -Prelease -s maven-settings.xml + mvn -B release:perform -Prelease git push git push --tags