-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1026 from Ladicek/update-release-workflow
use Java GitHub action for release
- Loading branch information
Showing
4 changed files
with
14 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: maven | ||
directory: "/" | ||
directory: / | ||
schedule: | ||
interval: daily | ||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: daily | ||
open-pull-requests-limit: 10 | ||
ignore: | ||
- dependency-name: org.jboss.weld:weld-junit5 | ||
versions: | ||
- ">= 3.a, < 4" |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,13 +30,15 @@ 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}} | ||
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 "[email protected]" | ||
git checkout -b release | ||
|
@@ -46,14 +48,14 @@ jobs: | |
sed -i -e 's|microprofile-fault-tolerance-version: .*|microprofile-fault-tolerance-version: '"'$MP_FT_VERSION'"'|' doc/antora.yml | ||
VERTX_VERSION=$(mvn org.apache.maven.plugins:maven-help-plugin:3.2.0:evaluate -Dexpression=version.vertx -q -DforceStdout) | ||
sed -i -e 's|vertx4-version: .*|vertx4-version: '"'$VERTX_VERSION'"'|' doc/antora.yml | ||
git commit -a -m 'Update antora.yml before release' | ||
mvn -B release:prepare -Prelease -DreleaseVersion=${{steps.metadata.outputs.current-version}} -DdevelopmentVersion=${{steps.metadata.outputs.next-version}} -s maven-settings.xml | ||
git commit -a -m 'Amendments before release' | ||
mvn -B release:prepare -Prelease -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 | ||
sed -i -e 's|https://smallrye.io/docs/smallrye-fault-tolerance/.*/index.html|https://smallrye.io/docs/smallrye-fault-tolerance/${{steps.metadata.outputs.current-version}}/index.html|' README.adoc | ||
sed -i -e 's|^version: ${{steps.metadata.outputs.current-version}}|version: main|' doc/antora.yml | ||
git commit -a -m 'Update README.adoc and antora.yml after release' | ||
git commit -a -m 'Amendments after release' | ||
git push | ||
git push --tags | ||
|