bump 1.1.18 #199
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: development version bump | |
on: | |
push: | |
branches: [ develop ] | |
paths-ignore: [ '**.md' ] | |
workflow_dispatch: | |
inputs: | |
bump: | |
description: 'Part of the version to bump: major, minor, patch' | |
required: false | |
default: 'patch' | |
branch: | |
description: 'Branch to run the workflow on' | |
required: false | |
default: 'develop' | |
jobs: | |
development-tag-publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set part of semantic version to bump | |
id: semver | |
run: | | |
SEMVER_PART="" | |
CHECKOUT_BRANCH="$GITHUB_REF" | |
if ${{github.event_name == 'push' }}; then | |
SEMVER_PART="patch" | |
elif ${{github.event_name == 'workflow_dispatch' }}; then | |
SEMVER_PART=${{ github.event.inputs.bump }} | |
CHECKOUT_BRANCH=${{ github.event.inputs.branch }} | |
fi | |
echo semver-part=$SEMVER_PART >> $GITHUB_OUTPUT | |
echo checkout-branch=$CHECKOUT_BRANCH >> $GITHUB_OUTPUT | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ steps.controls.outputs.checkout-branch }} | |
token: ${{ secrets.BROADBOT_TOKEN }} | |
- name: "Bump the tag to a new version" | |
uses: databiosphere/github-actions/actions/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.BROADBOT_TOKEN }} | |
DEFAULT_BUMP: patch | |
RELEASE_BRANCHES: master,develop | |
VERSION_FILE_PATH: settings.gradle | |
VERSION_LINE_MATCH: "^gradle.ext.version\\s*=\\s*\".*\"" | |
VERSION_SUFFIX: SNAPSHOT | |
- name: "Set up JDK" | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: "Publish to Artifactory" | |
env: | |
ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }} | |
ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }} | |
ARTIFACTORY_REPO_KEY: "libs-snapshot-local" | |
run: ./gradlew artifactoryPublish --scan |