forked from spring-attic/spring-cloud-aws
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (43 loc) · 1.2 KB
/
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
name: Java CI with Maven
on:
push:
tags:
- v2.3.*
- v2.4.*
- v3.0.*
jobs:
build:
name: "Release"
strategy:
matrix:
version: [ 8.0.275.hs-adpt ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-maven-
- name: Download ${{ matrix.version }}
uses: sdkman/sdkman-action@master
id: sdkman
with:
candidate: java
version: ${{ matrix.version }}
- name: Set up ${{ matrix.version }}
uses: actions/setup-java@v1
with:
java-version: 8
jdkFile: ${{ steps.sdkman.outputs.file }}
server-id: bintray-awspring
server-username: BINTRAY_USERNAME
server-password: BINTRAY_PASSWORD
- name: Build with Maven
run: ./mvnw -V verify
- name: Build with Maven
run: ./mvnw -V deploy
env:
BINTRAY_USERNAME: awspring-releaser
BINTRAY_PASSWORD: ${{ secrets.BINTRAY_PASSWORD }}