-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (32 loc) · 1.31 KB
/
deployment.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
39
40
name: Deployment
on:
release:
types:
- published
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Upload in Maven
run: |
./gradlew uploadArtifact \
-PreleaseVersion="${{ github.event.release.tag_name }}" \
-Psigning.keyId="${{ secrets.SIGNING_KEY_ID }}" \
-Psigning.password="${{ secrets.SIGNING_PASSWORD }}" \
-Psigning.secretKeyRingFile="${{ secrets.SIGNING_SECRET_KEY_RING_FILE }}" \
-PtokenBase64="${{ secrets.TOKEN_BASE64 }}"
update:
runs-on: ubuntu-latest
steps:
- name: Update release description
run: |
existingDescription=$(gh release view ${{ github.event.release.tag_name }} --repo ${{ github.repository }} --json body -q '.body')
newDescription='[Maven Repository](https://central.sonatype.com/artifact/io.github.damirdenis-tudor/${{ github.event.repository.name }}/${{ github.event.release.tag_name }})'
updatedDescription="${newDescription} : ${existingDescription}"
gh release edit ${{ github.event.release.tag_name }} --repo ${{ github.repository }} --notes "$updatedDescription"
env:
GH_TOKEN: ${{ github.token }}