-
Notifications
You must be signed in to change notification settings - Fork 5
41 lines (36 loc) · 1.34 KB
/
binary-specific-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
name: Binary specific release
on:
workflow_dispatch:
inputs:
release_version:
description: 'The version that is going to be release'
required: true
new_version:
description: 'The version that should be used as a new one after the release.'
required: true
jobs:
release:
timeout-minutes: 20
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.ZOWE_ROBOT_TOKEN }}
- uses: ./.github/actions/setup
- name: Set up git
run: |
git config user.email "[email protected]"
git config user.name "Zowe Robot"
- name: Release with Gradle
run: >
./gradlew packageJobsApiServer release -Prelease.useAutomaticVersion=true
-Prelease.releaseVersion=${{ github.event.inputs.release_version }}
-Prelease.newVersion=${{ github.event.inputs.new_version }}
-Pdeploy.username=$ARTIFACTORY_USERNAME -Pdeploy.password=$ARTIFACTORY_PASSWORD
env:
ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}
BUILD_NUMBER: ${{ github.run_number }}
BRANCH_NAME: ${{ github.ref_name }}
- uses: ./.github/actions/teardown