-
Notifications
You must be signed in to change notification settings - Fork 9
38 lines (32 loc) · 944 Bytes
/
Copy pathbuild.yml
File metadata and controls
38 lines (32 loc) · 944 Bytes
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
name: Build
on:
push:
tags:
- 'v*'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-22.04
container:
image: eclipse-temurin:17.0.18_8-jdk-alpine-3.23
steps:
- uses: actions/checkout@v4
- name: Gradle build
env:
GPG_KEY: ${{ secrets.GPG_KEY }}
GPG_PASS: ${{ secrets.GPG_PASS }}
PUBLISH_USER: ${{ secrets.PUBLISH_USER }}
PUBLISH_PASS: ${{ secrets.PUBLISH_PASS }}
run: |
VERSION=${{ github.ref_name }}
VERSION=${VERSION#v}
export VERSION
echo "Publish $VERSION"
./gradlew lintKotlin check jacocoTestReport publishAggregationToCentralPortal --no-daemon
- name: Codecov - Install dependencies
run: |
apk add --no-cache bash git curl
- name: Codecov - Upload
uses: codecov/codecov-action@v5.5.2
with:
token: ${{ secrets.CODECOV_TOKEN }}