Skip to content

Commit f6aa319

Browse files
committed
Manual retry of deploy
1 parent 32422da commit f6aa319

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Manual retry deploy toolkit test
2+
3+
on: workflow_dispatch
4+
5+
env:
6+
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
7+
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
8+
PGP_PASSWORD: ${{ secrets.PGP_PASSPHRASE }}
9+
10+
jobs:
11+
publish:
12+
name: Retry release toolkit test
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Check out code
16+
uses: actions/checkout@v3
17+
with:
18+
fetch-depth: 0
19+
20+
- uses: coursier/[email protected]
21+
22+
- name: Setup Scala CLI
23+
uses: VirtusLab/scala-cli-setup@main
24+
25+
- name: Import GPG key
26+
id: import_gpg
27+
uses: crazy-max/ghaction-import-gpg@v5
28+
with:
29+
gpg_private_key: ${{ secrets.PGP_SECRET }}
30+
passphrase: ${{ secrets.PGP_PASSPHRASE }}
31+
32+
- name: Publish Toolkit Test for JVM
33+
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
34+
continue-on-error: true
35+
env:
36+
TOOLKIT_VERSION: ${{ github.ref_name }}
37+
PGP_KEY_ID: ${{ steps.import_gpg.outputs.fingerprint }}
38+
39+
- name: Publish Toolkit Test for native
40+
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
41+
continue-on-error: true
42+
env:
43+
TOOLKIT_VERSION: ${{ github.ref_name }}
44+
PGP_KEY_ID: ${{ steps.import_gpg.outputs.fingerprint }}
45+
46+
- name: Publish Toolkit Test for JS
47+
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
48+
continue-on-error: true
49+
env:
50+
TOOLKIT_VERSION: ${{ github.ref_name }}
51+
PGP_KEY_ID: ${{ steps.import_gpg.outputs.fingerprint }}

publish-conf.scala

+1
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@
66
//> using publish.repository "central"
77
//> using publish.developer "szymon-rd|Simon R|https://github.com/szymon-rd"
88
//> using publish.developer "adpi2|Adrien Piquerez|https://github.com/adpi2"
9+
//> using repository "sonatype:public"

0 commit comments

Comments
 (0)