Skip to content

Merge pull request #1 from DamirDenis-Tudor/features #31

Merge pull request #1 from DamirDenis-Tudor/features

Merge pull request #1 from DamirDenis-Tudor/features #31

Workflow file for this run

name: Deployment

Check failure on line 1 in .github/workflows/deployment.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/deployment.yml

Invalid workflow file

`update-release` is not a valid event name
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-release:
runs-on: ubuntu-latest
steps:
- name: Update release description
uses: actions/github-script@v6
with:
script: |
const newDescription = "[Maven Repository](https://central.sonatype.com/artifact/io.github.damirdenis-tudor/${{ github.event.repository.name }}/${{ github.event.release.tag_name }})"
await octokit.rest.repos.updateRelease({
owner: context.repo.owner,
repo: context.repo.repo,
release_id: ${{ github.event.release.id }},
description: `${github.event.release.body}\n${newDescription}` # Append to existing description
});