-
Notifications
You must be signed in to change notification settings - Fork 5
34 lines (33 loc) · 1.02 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
name: Release
on:
workflow_dispatch:
inputs:
release_tag:
description: "Release tag to publish"
required: true
jobs:
dorelease:
name: release
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: gradle/gradle-build-action@v2
with:
gradle-version: wrapper
- name: publish to sonatype
env:
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
VERSION: ${{ github.event.inputs.release_tag }}
uses: gradle/gradle-build-action@v2
with:
arguments: publishToSonatype closeAndReleaseStagingRepository # closeSonatypeStagingRepository TODO: select based on input tag
- uses: actions/upload-artifact@v3
with:
name: Package
path: kotlin/goodmetrics/build/libs/