forked from rundeck-plugins/kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 1.1 KB
/
hunters_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
on:
push:
tags:
- '*' # Push events to matching v*, i.e. v1.0, v20.15.10
branches:
- feat/delete-flink-application
name: Create Release
jobs:
build:
name: Upload Release Asset
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Gradle
run: ./gradlew build
- name: Get Release Version
id: get_version
run: VERSION=$(./gradlew currentVersion -q -Prelease.quiet)-$(git rev-parse --short "$GITHUB_SHA") && echo ::set-output name=VERSION::$VERSION
- name: Upload Release Zip
id: upload_release_asset
uses: shallwefootball/s3-upload-action@master
with:
aws_key_id: ${{ secrets.AWS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY}}
aws_bucket: rundeck-plugins
source_dir: build/libs/${{ steps.get_version.outputs.VERSION }}.zip
destination_dir: python