From 4f7bddfb470ae83811371ee6a407f9ed172388e9 Mon Sep 17 00:00:00 2001 From: Matej Novotny Date: Fri, 22 Mar 2024 13:17:58 +0100 Subject: [PATCH] Adding release related configurations --- .github/project.yml | 4 ++ .github/release/maven-settings.xml.gpg | Bin 0 -> 450 bytes .github/release/weld-sign.asc.gpg | Bin 0 -> 3976 bytes .github/workflows/release.yml | 56 +++++++++++++++++++++++++ 4 files changed, 60 insertions(+) create mode 100644 .github/project.yml create mode 100644 .github/release/maven-settings.xml.gpg create mode 100644 .github/release/weld-sign.asc.gpg create mode 100644 .github/workflows/release.yml diff --git a/.github/project.yml b/.github/project.yml new file mode 100644 index 0000000..dba0716 --- /dev/null +++ b/.github/project.yml @@ -0,0 +1,4 @@ +name: Weld Parent +release: + current-version: 50 + next-version: 51-SNAPSHOT diff --git a/.github/release/maven-settings.xml.gpg b/.github/release/maven-settings.xml.gpg new file mode 100644 index 0000000000000000000000000000000000000000..a0289e9a013921a6de789aaaa439fbf0188bd7fb GIT binary patch literal 450 zcmV;z0X_bV4Fm}T0-BIPRCX?HQ|IpSnq<`?* z!qV+{L}N%)fzz!?BVXjC{=D0d*{&c4&)NU?V*9JMmXwm$1Pn<71p0^Q`B>toMS?S0 z_F<(zI>1n~GpL9t{xTJxmry?>zj|>r)Z%HRwIzLsJ%Q9M~x;MY9g6bW~Qgz%s+ z3#;oIDFv4Y29@aya^Z%jW(bPeaBrMOC*LbVs01=m1$r~7F~0tcuyyn9TVOXt%TPJ; spMGvrw`YHrqTl}-!o4IG+r}@jney@+SZP~~(ALtS7SsAdmJnP-=bIAdK>z>% literal 0 HcmV?d00001 diff --git a/.github/release/weld-sign.asc.gpg b/.github/release/weld-sign.asc.gpg new file mode 100644 index 0000000000000000000000000000000000000000..4fa2d796b1545891c3129439b53ad5012a155701 GIT binary patch literal 3976 zcmV;34|nj44Fm}T0=K0oCh;W`*8kG$0VOUC=Wf5A1EOlof`G!4=9M28$rnxdf|Z#J zTR*i<%6x9q(d1^2>pM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#9bUd1jjSMISWez`t6bfJI*Csof8PdG6wH*7f?@oAyomUP zXJLkv9Rc1N3?3P&%_60$>e<>zoaF|~g}%v<@!Ue1)t<)jJ`g7GD^?}FAgMY&C$=mL zHP%htkB)L~Z$m4*Or&(Ugx{SYz?6W!UiLD;RT*y%38BqEGaeH3z3MCVqHyq<)S96N z7>o6AA{AdxI)6m5t_3wx<=|}df{()$HpsQt_9%Og>J3*xa-@VSu{Ug>0KwY9GXLgb zducV)c5GQq-W(|2pHp>)EZj}@>b;w=;eC5>tVC)o_|O9O$KGE#E9L=uDDWA!ssn^x zS^tmlJlEqU$Zq(TK1_bM^4cqz_JC<=&nz{%-0U=-hXH&*6p36di# zVWh<4CFZ{S&1YuCtlQ(w;wLJErLk`rr;RmmZ$1_7)RW~Dc4yQF1XaMxs0xzkS0mwq i{x^-f{htgwvr*PSpdMOv_1vN`=8xYbP;4m(XpQ0X@1BSN literal 0 HcmV?d00001 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..163c7a4 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,56 @@ +name: Weld Parent Release + +on: + pull_request: + types: + - closed + paths: + - '.github/project.yml' + +jobs: + release: + name: Release + runs-on: ubuntu-latest + if: ${{github.event.pull_request.merged == true}} + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + steps: + - name: Retrieve project metadata + id: metadata + uses: radcortez/project-metadata-action@master + with: + github-token: ${{secrets.GITHUB_TOKEN}} + metadata-file-path: '.github/project.yml' + + - name: Checkout + uses: actions/checkout@v3 + with: + token: ${{secrets.GITHUB_TOKEN}} + + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + distribution: temurin + java-version: 11 + + - name: Set up Maven + uses: stCarolas/setup-maven@v4.5 + with: + maven-version: 3.8.8 + + - name: Maven release ${{steps.metadata.outputs.current-version}} + run: | + export MAVEN_OPTS="--add-opens=java.base/java.util=ALL-UNNAMED" + java -version + gpg --quiet --batch --yes --decrypt --passphrase="${{secrets.SECRET_PASSPHRASE}}" --output weld-sign.asc .github/release/weld-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 weld-sign.asc + git config --global user.name "Weld CI" + git config --global user.email "weld-dev@lists.jboss.org" + git checkout -b release + mvn release:prepare --batch-mode -Drelease -DreleaseVersion=${{steps.metadata.outputs.current-version}} -Dtag=${{steps.metadata.outputs.current-version}} -DdevelopmentVersion=${{steps.metadata.outputs.next-version}} -s maven-settings.xml + git checkout ${{github.base_ref}} + git rebase release + mvn -B release:perform -Drelease -s maven-settings.xml + git push + git push --tags \ No newline at end of file