diff --git a/.github/workflows/manual_retry_test_deploy.yml b/.github/workflows/manual_retry_test_deploy.yml new file mode 100644 index 0000000..263838b --- /dev/null +++ b/.github/workflows/manual_retry_test_deploy.yml @@ -0,0 +1,51 @@ +name: Manual retry deploy toolkit test + +on: workflow_dispatch + +env: + OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} + OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} + PGP_PASSWORD: ${{ secrets.PGP_PASSPHRASE }} + +jobs: + publish: + name: Retry release toolkit test + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - uses: coursier/cache-action@v6.3 + + - name: Setup Scala CLI + uses: VirtusLab/scala-cli-setup@main + + - name: Import GPG key + id: import_gpg + uses: crazy-max/ghaction-import-gpg@v5 + with: + gpg_private_key: ${{ secrets.PGP_SECRET }} + passphrase: ${{ secrets.PGP_PASSPHRASE }} + + - name: Publish Toolkit Test for JVM + run: for i in {1..5}; do scala-cli --power publish --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 + continue-on-error: true + env: + TOOLKIT_VERSION: ${{ github.ref_name }} + PGP_KEY_ID: ${{ steps.import_gpg.outputs.fingerprint }} + + - name: Publish Toolkit Test for native + run: for i in {1..5}; do scala-cli --power publish --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 + continue-on-error: true + env: + TOOLKIT_VERSION: ${{ github.ref_name }} + PGP_KEY_ID: ${{ steps.import_gpg.outputs.fingerprint }} + + - name: Publish Toolkit Test for JS + run: for i in {1..5}; do scala-cli --power publish --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 + continue-on-error: true + env: + TOOLKIT_VERSION: ${{ github.ref_name }} + PGP_KEY_ID: ${{ steps.import_gpg.outputs.fingerprint }} diff --git a/publish-conf.scala b/publish-conf.scala index 1d46bc7..cec3cda 100644 --- a/publish-conf.scala +++ b/publish-conf.scala @@ -6,3 +6,4 @@ //> using publish.repository "central" //> using publish.developer "szymon-rd|Simon R|https://github.com/szymon-rd" //> using publish.developer "adpi2|Adrien Piquerez|https://github.com/adpi2" +//> using repository "sonatype:public" \ No newline at end of file