-
Notifications
You must be signed in to change notification settings - Fork 129
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 #1374 from smallrye/ci/fixes-after-2.5.0-M1
Release CI enhancements after 2.5.0-M1
- Loading branch information
Showing
4 changed files
with
35 additions
and
6 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 |
---|---|---|
|
@@ -29,7 +29,7 @@ init-gpg: | |
# Initialize Git | ||
init-git: | ||
@echo "Git setup" | ||
git config --global user.name "${GITHUB_ACTOR}" | ||
git config --global user.name "smallrye-ci" | ||
git config --global user.email "[email protected]" | ||
|
||
# Steps before releasing | ||
|
@@ -56,14 +56,17 @@ release: pre-release | |
git push | ||
@echo "Call JReleaser" | ||
./mvnw -settings .build/maven-ci-settings.xml --batch-mode --no-transfer-progress -Pjreleaser jreleaser:full-release -pl :mutiny-project | ||
@echo "Deploy to Maven Central" | ||
-./mvnw --settings maven-settings.xml --batch-mode --no-transfer-progress deploy -Prelease -DskipTests | ||
@echo "Bump to 999-SNAPSHOT and push upstream" | ||
./mvnw --settings .build/maven-ci-settings.xml --batch-mode --no-transfer-progress versions:set -DnewVersion=999-SNAPSHOT -DgenerateBackupPoms=false | ||
./mvnw --settings .build/maven-ci-settings.xml --batch-mode --no-transfer-progress versions:set -DnewVersion=999-SNAPSHOT -DgenerateBackupPoms=false -pl bom | ||
git commit -am "chore(release): set development version to 999-SNAPSHOT" | ||
git push | ||
|
||
# Deploy to Maven Central | ||
deploy-to-maven-central: decrypt-secrets init-gpg | ||
@echo "Deploy to Maven Central" | ||
./mvnw --settings maven-settings.xml --batch-mode --no-transfer-progress deploy -Prelease -DskipTests | ||
|
||
# Steps post-release | ||
post-release: | ||
@echo "🚀 Post-release steps..." | ||
|
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
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Push a release to Maven Central | ||
|
||
on: | ||
push: | ||
tags: | ||
- '2.*' | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
env: | ||
SECRET_FILES_PASSPHRASE: ${{ secrets.SECRET_FILES_PASSPHRASE }} | ||
steps: | ||
- name: Git checkout | ||
uses: actions/checkout@v3 | ||
- name: Java setup | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '11' | ||
distribution: 'temurin' | ||
cache: maven | ||
- name: Install just | ||
uses: taiki-e/install-action@just | ||
- name: Deploy tp Maven Central | ||
run: just -f .build/justfile-for-release -d . deploy-to-maven-central |
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