-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters