2626 - name : Setup Scala CLI
2727 uses : VirtusLab/scala-cli-setup@main
2828
29-
3029 - name : Import GPG key
3130 id : import_gpg
3231 run : |
@@ -37,49 +36,42 @@ jobs:
3736 env :
3837 gpg_private_key : ${{ secrets.PGP_SECRET }}
3938 passphrase : ${{ secrets.PGP_PASSPHRASE }}
40-
41- - name : Local publish Toolkit for JVM
42- 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
43- continue-on-error : true
44- env :
45- PGP_KEY_ID : ${{ steps.import_gpg.outputs.fingerprint }}
4639
47- - name : Local publish Toolkit for native
48- 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
40+ - name : Publish Toolkit for JVM
41+ 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
4942 continue-on-error : true
5043 env :
5144 PGP_KEY_ID : ${{ steps.import_gpg.outputs.fingerprint }}
5245
53- - name : Local publish Toolkit for js
54- run : for i in {1..5}; do scala-cli --power publish local --cross --js 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
46+ - name : Publish Toolkit for native
47+ run : for i in {1..5}; do scala-cli --power publish --cross --native 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
5548 continue-on-error : true
5649 env :
5750 PGP_KEY_ID : ${{ steps.import_gpg.outputs.fingerprint }}
5851
59- - name : Publish Toolkit for JVM
60- run : scala-cli --power publish --cross Toolkit.scala publish-conf.scala
61-
62- - name : Publish Toolkit for native
63- run : scala-cli --power publish --cross --native Toolkit.scala publish-conf.scala
64-
6552 - name : Publish Toolkit for JS
66- run : scala-cli --power publish --cross --js Toolkit.scala publish-conf.scala
53+ run : for i in {1..5}; do scala-cli --power publish --cross --js Toolkit.js. 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
6754 continue-on-error : true
55+ env :
56+ PGP_KEY_ID : ${{ steps.import_gpg.outputs.fingerprint }}
6857
6958 - name : Publish Toolkit Test for JVM
70- run : scala-cli --power publish --toolkit $TOOLKIT_VERSION --cross ToolkitTest.scala publish-conf.scala
59+ run : for i in {1..5}; do scala-cli --power publish --dependency "org.scala-lang::toolkit: $TOOLKIT_VERSION" --cross ToolkitTest.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
7160 continue-on-error : true
7261 env :
7362 TOOLKIT_VERSION : ${{ github.ref_name }}
74-
63+ PGP_KEY_ID : ${{ steps.import_gpg.outputs.fingerprint }}
64+
7565 - name : Publish Toolkit Test for native
76- run : scala-cli --power publish --native -- toolkit $TOOLKIT_VERSION --cross ToolkitTest.scala publish-conf.scala
66+ run : for i in {1..5}; do scala-cli --power publish --dependency "org.scala-lang:: toolkit: $TOOLKIT_VERSION" --cross --native ToolkitTest.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
7767 continue-on-error : true
7868 env :
7969 TOOLKIT_VERSION : ${{ github.ref_name }}
70+ PGP_KEY_ID : ${{ steps.import_gpg.outputs.fingerprint }}
8071
8172 - name : Publish Toolkit Test for JS
82- run : scala-cli --power publish --js -- toolkit $TOOLKIT_VERSION --cross ToolkitTest.scala publish-conf.scala
73+ run : for i in {1..5}; do scala-cli --power publish --dependency "org.scala-lang:: toolkit: $TOOLKIT_VERSION" --cross --js ToolkitTest.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
8374 continue-on-error : true
8475 env :
8576 TOOLKIT_VERSION : ${{ github.ref_name }}
77+ PGP_KEY_ID : ${{ steps.import_gpg.outputs.fingerprint }}
0 commit comments