-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (47 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
46
47
48
49
50
# This workflow will build the Java project with Maven and create a Github release
name: Release
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'zulu'
cache: maven
- name: Build with Maven
run: mvn package
- name: Upload jar
uses: actions/upload-artifact@v4
with:
name: maven-build-jar
path: target/aerospike-circuit-breaker-*-with-dependencies.jar
release:
runs-on: ubuntu-latest
needs:
- build
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Download jar
uses: actions/download-artifact@v4
with:
name: maven-build-jar
path: target/aerospike-circuit-breaker-*-with-dependencies.jar
- name: Release to Github
uses: ncipollo/release-action@v1
with:
artifacts: "target/aerospike-circuit-breaker-*-with-dependencies.jar"
generateReleaseNotes: true
commit: main
draft: true