release 1.25.1 #200
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
name: release | |
run-name: release ${{ inputs.version }} | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
required: true | |
type: string | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
concurrency: blazemeter_test | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: 8 | |
cache: maven | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- uses: browser-actions/setup-chrome@v1 | |
- name: check version | |
run: .github/semver-check.sh ${{ inputs.version }} | |
- name: create release draft | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: v${{ inputs.version }} | |
name: ${{ inputs.version }} | |
draft: true | |
- name: set maven project version | |
run: mvn --batch-mode --no-transfer-progress versions:set -DnewVersion=${{ inputs.version }} --settings .github/settings.xml | |
- name: update docs version | |
run: .github/fix-docs-version.sh ${{ inputs.version }} | |
- name: commit release version | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: '[skip ci] Set release version' | |
branch: master | |
file_pattern: 'pom.xml */pom.xml README.md docs/index.md docs/guide/**' | |
- name: package release | |
run: mvn --batch-mode --no-transfer-progress clean install --settings .github/settings.xml | |
env: | |
BZ_TOKEN: ${{ secrets.BZ_TOKEN }} | |
OCTOPERF_API_KEY: ${{ secrets.OCTOPERF_API_KEY }} | |
AZURE_CREDS: ${{ secrets.AZURE_CREDS }} | |
DATADOG_API_KEY: ${{ secrets.DATADOG_API_KEY }} | |
DATADOG_APPLICATION_KEY: ${{ secrets.DATADOG_APPLICATION_KEY }} | |
- name: publish to Nexus | |
run: .github/maven-central-deploy.sh | |
env: | |
GPG_SECRET_KEYS: ${{ secrets.GPG_SECRET_KEYS }} | |
GPG_OWNERTRUST: ${{ secrets.GPG_OWNERTRUST }} | |
GPG_EXECUTABLE: gpg | |
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | |
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | |
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | |
- name: collect release artifacts | |
run: echo "RELEASE_ARTIFACTS=$(.github/collect-release-artifacts.sh)" >> $GITHUB_ENV | |
- name: publish GH release | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: v${{ inputs.version }} | |
allowUpdates: true | |
omitNameDuringUpdate: true | |
omitBodyDuringUpdate: true | |
updateOnlyUnreleased: true | |
draft: false | |
artifacts: "${{ env.RELEASE_ARTIFACTS }}" | |
- name: get next SNAPSHOT version | |
run: echo "SNAPSHOT_VERSION=$(.github/next-minor-snapshot.sh ${{ inputs.version }})" >> $GITHUB_ENV | |
- name: update to next SNAPSHOT version | |
run: mvn --batch-mode --no-transfer-progress versions:set -DnewVersion=${{ env.SNAPSHOT_VERSION }} | |
- name: commit SNAPSHOT version | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: '[skip ci] Set SNAPSHOT version' | |
branch: master | |
file_pattern: 'pom.xml */pom.xml README.md docs/index.md docs/guide/**' | |
- name: deploy github pages | |
run: .github/vuepress-deploy.sh | |
env: | |
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- uses: actions/checkout@v3 | |
with: | |
repository: abstracta/jmeter-java-dsl-sample | |
path: jmeter-java-dsl-sample | |
token: ${{ secrets.ACTIONS_TOKEN }} | |
- name: update version in sample project | |
run: .github/update-sample-version.sh ${{ inputs.version }} | |
- name: Discord notification | |
env: | |
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} | |
uses: Ilshidur/action-discord@master | |
with: | |
args: 'A new release is out! Check it at https://github.com/abstracta/jmeter-java-dsl/releases/tag/v${{ inputs.version }}' |