Skip to content

Commit

Permalink
Manual retry of deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
szymon-rd committed Jun 19, 2023
1 parent 32422da commit f6aa319
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/manual_retry_test_deploy.yml
Original file line number Diff line number Diff line change
@@ -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 }}
1 change: 1 addition & 0 deletions publish-conf.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit f6aa319

Please sign in to comment.