-
Notifications
You must be signed in to change notification settings - Fork 11
38 lines (30 loc) · 1.12 KB
/
publish.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
name: OCPP Publish
on:
push:
tags:
- "R-*"
permissions:
contents: read
jobs:
build:
concurrency: ocpp-publish
runs-on: ubuntu-latest
steps:
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Checkout IZIVIA OCPP toolkit library code from GH
uses: actions/checkout@v3
- name: Build OCPP toolkit with Gradle
uses: gradle/[email protected]
env:
VERSION: ${{ github.ref }}
SONATYPE_USERNAME: ${{ secrets.DELIVERY_SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.DELIVERY_SONATYPE_PASSWORD }}
GPG_PRIVATE_KEY: ${{ secrets.DELIVERY_GPG_SECRET_KEY }}
GPG_PASSPHRASE: ${{ secrets.DELIVERY_GPG_KEY_PASSPHRASE }}
with:
gradle-version: 7.4.2
arguments: publishToSonatype closeAndReleaseSonatypeStagingRepository