-
Notifications
You must be signed in to change notification settings - Fork 16
32 lines (30 loc) · 1.04 KB
/
deployrelease.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
name: Deploy Release
on:
push:
tags:
- 'v*'
jobs:
deploy-release:
runs-on: ubuntu-22.04
if: startsWith(github.ref, 'refs/tags')
steps:
- uses: actions/checkout@v4
name: Checkout code
- uses: burrunan/gradle-cache-action@v1
name: Deploy Release
env:
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPE_USERNAME }}
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_PASSWORD }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.GPG_PRIVATE_KEY }}
ORG_GRADLE_PROJECT_signingPassphrase: ${{ secrets.GPG_PASSPHRASE }}
with:
job-id: release
arguments: publishToSonatype closeAndReleaseSonatypeStagingRepository
- name: Create release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
prerelease: ${{ contains(github.ref, 'beta') || contains(github.ref, 'alpha') }}