-
Notifications
You must be signed in to change notification settings - Fork 5
43 lines (38 loc) · 1.22 KB
/
binary-automatic-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
name: Automatic release of binaries
on:
workflow_dispatch:
inputs:
scope:
description: 'The release scope.'
type: choice
options:
- patch
- minor
- major
required: true
default: 'patch'
jobs:
binary-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.scope=${{ github.event.inputs.scope }}
-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