-
Notifications
You must be signed in to change notification settings - Fork 6
50 lines (47 loc) · 1.26 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
name: release
on:
push:
branches: ["release"]
tags: [ 'v*' ]
env:
LC_ALL: en_US.UTF-8
REPOSITORY_USERNAME: ${{ secrets.REPOSITORY_USERNAME }}
REPOSITORY_PASSWORD: ${{ secrets.REPOSITORY_PASSWORD }}
awsid: ${{ secrets.AWSID }}
awssecret: ${{ secrets.AWSSECRET }}
jobs:
build:
name: build on OpenJDK Linux
runs-on: ubuntu-latest
steps:
- name: Git Checkout
uses: actions/checkout@v3
- name: Set up Java
uses: actions/setup-java@v3
with:
java-version: 8
distribution: temurin
- name: install gradle
uses: pkriens/setup-jpm@v1.0.0
- name: Build
shell: bash
run: |
jpm install -f biz.aQute.bnd:biz.aQute.bnd:6.2.0-SNAPSHOT
bnd buildtool -f
./gradlew --parallel build release
- name: save-tests
uses: actions/upload-artifact@v3
with:
name: test-reports
path: |
*/target/reports/
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
prerelease: false
draft: false
files: |
biz.aQute.api/target/*.jar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}