-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (48 loc) · 1.48 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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 }}
cancel-in-progress: true
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