From f28dc30e16b7c5b9df8de7728fc380001c93d3e6 Mon Sep 17 00:00:00 2001 From: Szymon Rodziewicz Date: Mon, 19 Jun 2023 18:59:43 +0200 Subject: [PATCH] Publish in local ivy repo --- .github/workflows/deploy.yaml | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 061c250..3267371 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -3,7 +3,7 @@ name: Publish toolkit on: release: types: [published] - workflow_dispatch: + workflow_dispatch: env: OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} @@ -36,7 +36,26 @@ jobs: env: gpg_private_key: ${{ secrets.PGP_SECRET }} passphrase: ${{ secrets.PGP_PASSPHRASE }} - + + - name: Local publish Toolkit for JVM + run: for i in {1..5}; do scala-cli --power publish local --cross Toolkit.scala publish-conf.scala --gpg-key $PGP_KEY_ID --gpg-option --pinentry-mode --gpg-option loopback --gpg-option --passphrase --gpg-option $PGP_PASSWORD && break || sleep 15; done + continue-on-error: true + env: + PGP_KEY_ID: ${{ steps.import_gpg.outputs.fingerprint }} + + - name: Local publish Toolkit for native + run: for i in {1..5}; do scala-cli --power publish local --cross --native Toolkit.scala publish-conf.scala --gpg-key $PGP_KEY_ID --gpg-option --pinentry-mode --gpg-option loopback --gpg-option --passphrase --gpg-option $PGP_PASSWORD && break || sleep 15; done + continue-on-error: true + env: + PGP_KEY_ID: ${{ steps.import_gpg.outputs.fingerprint }} + + - name: Local publish Toolkit for JS + run: for i in {1..5}; do scala-cli --power publish local --cross --js Toolkit.js.scala publish-conf.scala --gpg-key $PGP_KEY_ID --gpg-option --pinentry-mode --gpg-option loopback --gpg-option --passphrase --gpg-option $PGP_PASSWORD && break || sleep 15; done + continue-on-error: true + env: + PGP_KEY_ID: ${{ steps.import_gpg.outputs.fingerprint }} + + - name: Publish Toolkit for JVM run: for i in {1..5}; do scala-cli --power publish --cross Toolkit.scala publish-conf.scala --password env:OSSRH_PASSWORD --user env:OSSRH_USERNAME --gpg-key $PGP_KEY_ID --gpg-option --pinentry-mode --gpg-option loopback --gpg-option --passphrase --gpg-option $PGP_PASSWORD && break || sleep 15; done continue-on-error: true