/
action.yml
53 lines (50 loc) · 1.62 KB
/
action.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
name: 'Deploy to Bintray'
author: 'Stefan Löffler'
description: 'Deploys artifacts to Bintray'
inputs:
file:
description: 'File to upload to Bintray'
required: true
subject:
description: 'The Bintray subject to deply to (organization/user name)'
required: true
repo:
description: 'The Bintray repository to deploy to'
required: true
pkg:
description: 'The Bintray package to deploy to'
required: true
version:
description: 'The Bintray version to deploy to (will be created if it does not exist)'
required: true
username:
description: 'The Bintray username to use for authentication'
required: true
key:
description: 'The Bintray API key to use for authentication'
required: true
releaseDate:
description: 'The ISO8601 date to set the version release date to (e.g., 1900-12-31T23:59:59+01:00; as produced by `git show -s --format=''%cI''`)'
required: false
runs:
using: composite
steps:
- run: |
if [ "$RUNNER_OS" == "Windows" ]; then
python '${{ github.action_path }}/upload2bintray.py' ${{ inputs.file }}
else
python3 ${{ github.action_path }}/upload2bintray.py ${{ inputs.file }}
fi
shell: bash
working-directory: ${{ github.workspace }}
env:
BINTRAY_SUBJECT: ${{ inputs.subject }}
BINTRAY_REPO: ${{ inputs.repo }}
BINTRAY_PACKAGE: ${{ inputs.pkg }}
BINTRAY_VERSION: ${{ inputs.version }}
BINTRAY_USER: ${{ inputs.username }}
BINTRAY_KEY: ${{ inputs.key }}
BINTRAY_RELEASE_DATE: ${{ inputs.releaseDate }}
branding:
color: 'green'
icon: 'upload'