-
-
Notifications
You must be signed in to change notification settings - Fork 17
49 lines (48 loc) · 1.47 KB
/
upload_release.yaml
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
39
40
41
42
43
44
45
46
47
48
name: Publish Artifacts
'on':
push:
tags:
- '*'
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
jobs:
ReleaseMC:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Grab tag name
uses: olegtarasov/[email protected]
id: tagName
- name: Setup Java
uses: actions/[email protected]
with:
distribution: temurin
java-version: 20
cache: gradle
- name: Upload to Sonatype
run: |
./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository \
-Psign=true \
-PreleaseVersion="${{ steps.tagName.outputs.tag }}" \
-PsigningKey="${{ secrets.SIGNING_KEY }}" \
-PsigningPassword="${{ secrets.SIGNING_PASSWORD }}" \
-PnexusUsername="${{ secrets.NEXUS_USERNAME }}" \
-PnexusPassword="${{ secrets.NEXUS_PASSWORD }}"
broadcast-release:
needs:
- ReleaseMC
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Grab tag name
uses: olegtarasov/[email protected]
id: tagName
- name: Dispatch Release Event
uses: peter-evans/[email protected]
with:
token: '${{ secrets.ORG_PUBLIC_REPO_WORKFLOW_TRIGGERING }}'
repository: http4k/http4k-connect
event-type: http4k-connect-release
client-payload: '{"version": "${{ steps.tagName.outputs.tag }}"}'