Skip to content

Commit

Permalink
add publish script for kompot_coroutines module
Browse files Browse the repository at this point in the history
  • Loading branch information
funriser authored Nov 9, 2022
1 parent 7fb9cf9 commit 5eef523
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/kompot_coroutines_publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: "Kompot Coroutines publish"

on:
release:
types: [published]

jobs:
publish-maven:
runs-on: ubuntu-latest
if: contains(github.ref, 'kompot')

steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
java-version: 11
distribution: 'adopt-hotspot'
#Decode key ring file from secrets and put it to ~/.gradle/
- name: Decode
shell: bash
run: 'echo "${{secrets.SIGNING_SECRET_KEY_RING_FILE}}" | base64 -d > secring.gpg'
- uses: eskatos/gradle-command-action@v1
with:
arguments: :kompot_coroutines:publish -Psigning.keyId=${{secrets.SIGNING_KEY_ID}} -Psigning.password=${{ secrets.SIGNING_PASSWORD }} -Psigning.secretKeyRingFile=../secring.gpg
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.OSSRH_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.OSSRH_PASSWORD }}

0 comments on commit 5eef523

Please sign in to comment.