Skip to content

Deployment

Deployment #30

Workflow file for this run

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
needs: deploy
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 }}