-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add workflow (release.yml) for drafting a new release - Add workflow (releasetag.yml) for publishing the artifacts of a tagged release - Publish docs to gh-pages branch - Sign artifacts using gpg key of chaos monkey bot - Remove no more needed github maven site plugin and its configuration
- Loading branch information
Showing
7 changed files
with
98 additions
and
44 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
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,45 @@ | ||
name: Release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: "The version (2.X.X) to be released" | ||
required: true | ||
|
||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
env: | ||
VERSION: ${{ github.event.inputs.version }} | ||
|
||
steps: | ||
- name: Install semver | ||
run: sudo apt-get install -y node-semver | ||
- name: Validate is valid version | ||
run: semver $VERSION | ||
- uses: actions/checkout@v2 | ||
with: | ||
token: ${{ secrets.GH_TOKEN_CHAOS_BOT }} | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
- name: Configure Git | ||
run: | | ||
git config user.email "54942692+ChaosMonkeyBot@users.noreply.github.com" | ||
git config user.name "Chaos Monkey Bot" | ||
- name: Bump Version | ||
run: ./mvnw versions:set-property -Dproperty=revision -DnewVersion=$VERSION | ||
- name: Tag | ||
run: | | ||
git commit -m "Release $VERSION" -o pom.xml | ||
git tag -a -m "Release $VERSION" v$VERSION | ||
- name: Move to next Snapshot | ||
run: | | ||
NEXT_VERSION=`semver $VERSION -i`-SNAPSHOT | ||
./mvnw versions:set-property -Dproperty=revision -DnewVersion=$NEXT_VERSION | ||
git commit -m "Prepare for next version: $NEXT_VERSION" -o pom.xml | ||
- name: Push (Release Tag + Main Branch) | ||
run: git push --follow-tags |
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,39 @@ | ||
name: Publish Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- v* | ||
|
||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} | ||
- name: Cache local Maven repository | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: Run Maven deploy | ||
run: ./mvnw deploy -DperformRelease=true --settings .settings.xml | ||
env: | ||
SONATYPE_USERTOKEN: ${{ secrets.SONATYPE_USERTOKEN }} | ||
SONATYPE_USERTOKENPASSWORD: ${{ secrets.SONATYPE_USERTOKENPASSWORD }} | ||
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | ||
- name: Publish gh-pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./chaos-monkey-docs/target/generated-docs | ||
destination_dir: latest | ||
commit_message: ${{ github.event.head_commit.message }} |
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
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