-
Notifications
You must be signed in to change notification settings - Fork 11
79 lines (76 loc) · 2.68 KB
/
quarkus-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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: Quarkus-Release
on:
workflow_dispatch:
inputs:
branch:
description: "The branch to checkout when cutting the release."
required: true
default: "main"
increment-major:
description: "Should we increment the major version (true/false)"
required: true
default: "false"
increment-minor:
description: "Should we increment the minor version (true/false)"
required: true
default: "false"
defaults:
run:
working-directory: release/DataTier-APIs/Quarkus-APIs
jobs:
release:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[ci skip]')"
steps:
- name: Checkout source
uses: actions/checkout@v2
with:
token: ${{ secrets.HEROPHILUS_ACCESS_TOKEN }}
path: release
- name: Java Maven release
id: maven-release
uses: qcastel/[email protected]
env:
JAVA_HOME: /usr/lib/jvm/java-11-openjdk/
with:
access-token: ${{ secrets.HEROPHILUS_ACCESS_TOKEN }}
release-branch-name: ${{ github.event.inputs.branch }}
version-major: ${{ github.event.inputs.increment-major }}
version-minor: ${{ github.event.inputs.increment-minor }}
maven-args: "-Dmaven.deploy.skip=true"
git-release-bot-name: "idaas-bot"
maven-project-folder: release/DataTier-APIs/Quarkus-APIs
- uses: octokit/[email protected]
id: get_latest_tag
with:
route: GET /repos/Project-Herophilus/DataSynthesis/tags
owner: Project-Herophilus
repo: DataSynthesis
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: echo ::set-output name=tag_name::$(echo '${{ steps.get_latest_tag.outputs.data }}' | jq .[0].name -r)
id: tag-name
- run: "echo Tag: ${{ steps.tag-name.outputs.tag_name }}"
- name: Checkout source
uses: actions/checkout@v2
with:
token: ${{ secrets.HEROPHILUS_ACCESS_TOKEN }}
path: tag
ref: refs/tags/${{ steps.tag-name.outputs.tag_name }}
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: "Build & test"
run: mvn -B package -Dquarkus.package.type=uber-jar --file pom.xml
working-directory: tag/DataTier-APIs/Quarkus-APIs
env:
GITHUB_TOKEN: ${{ secrets.HEROPHILUS_ACCESS_TOKEN }}
- uses: "marvinpinto/action-automatic-releases@latest"
with:
automatic_release_tag: ${{ steps.tag-name.outputs.tag_name }}
repo_token: "${{ secrets.HEROPHILUS_ACCESS_TOKEN }}"
prerelease: false
files: |
tag/DataTier-APIs/Quarkus-APIs/target/*.jar