-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (37 loc) · 1.28 KB
/
drelease.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
# This file was generated using a Kotlin DSL.
# If you want to modify the workflow, please change the Kotlin source and regenerate this YAML file.
# Generated with https://github.com/typesafegithub/github-workflows-kt
name: 'drelease'
on:
push:
tags:
- 'v*.*.*'
jobs:
release:
runs-on: 'ubuntu-latest'
env:
MYKOTLIBS_signing_keyId: '${{ secrets.MYKOTLIBS_signing_keyId }}'
MYKOTLIBS_signing_password: '${{ secrets.MYKOTLIBS_signing_password }}'
MYKOTLIBS_signing_key: '${{ secrets.MYKOTLIBS_signing_key }}'
MYKOTLIBS_ossrhUsername: '${{ secrets.MYKOTLIBS_ossrhUsername }}'
MYKOTLIBS_ossrhPassword: '${{ secrets.MYKOTLIBS_ossrhPassword }}'
MYKOTLIBS_sonatypeStagingProfileId: '${{ secrets.MYKOTLIBS_sonatypeStagingProfileId }}'
steps:
- id: 'step-0'
uses: 'actions/checkout@v3'
- id: 'step-1'
name: 'Set up JDK'
uses: 'actions/setup-java@v3'
with:
java-version: '17'
distribution: 'zulu'
- id: 'step-2'
name: 'Build'
uses: 'gradle/gradle-build-action@v2'
with:
arguments: 'build'
- id: 'step-3'
name: 'Publish to Sonatype'
uses: 'gradle/gradle-build-action@v2'
with:
arguments: 'publishToSonatype closeAndReleaseSonatypeStagingRepository'