release #75
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" | |
on: | |
workflow_dispatch: | |
inputs: | |
force: | |
required: true | |
type: choice | |
description: Force (bump version)? | |
default: 'false' | |
options: | |
- 'true' | |
- 'false' | |
pull_request_target: | |
branches: [ 'release/*', 'main' ] | |
types: [ closed ] | |
concurrency: | |
group: ${{ github.ref }} | |
jobs: | |
build: | |
if: (github.event.pull_request.merged == true) || github.event.inputs.force == 'true' | |
runs-on: ubuntu-latest | |
env: | |
DOCKER_REPO: "seemscloud" | |
steps: | |
- name: "[Repository] Clone" | |
uses: actions/checkout@v2 | |
- name: "[Login] Docker Hub" | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
ssh-key: ${{secrets.SSH_BOT_SEEMS_CLOUD}} | |
- name: "[Setup] JDK 17" | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
architecture: x64 | |
- uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{secrets.SSH_BOT_SEEMS_CLOUD}} | |
- name: "[Maven] Build (Release, Versioning Enabled)" | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "Bot" | |
export VERSION_SUFFIX=$(/bin/bash ${GITHUB_WORKSPACE}/.github/scripts/version-suffix.sh) | |
mvn clean install --no-transfer-progress |