Skip to content

Commit

Permalink
Publish in local ivy repo
Browse files Browse the repository at this point in the history
  • Loading branch information
szymon-rd committed Jun 19, 2023
1 parent c51fcd7 commit f28dc30
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Publish toolkit
on:
release:
types: [published]
workflow_dispatch:
workflow_dispatch:

env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f28dc30

Please sign in to comment.