@@ -2,6 +2,10 @@ name: release
22on :
33 workflow_dispatch :
44 inputs :
5+ workflow_run_id :
6+ description : ' ID of the workflow run to fetch artifacts from'
7+ required : true
8+ type : string
59 signed_binary_name :
610 description : ' Name of the signed binary'
711 required : false
@@ -19,19 +23,17 @@ jobs:
1923 with :
2024 submodules : recursive
2125
22- - name : Package Connector
26+ - name : Download Artifact
27+ uses : actions/download-artifact@v4
28+ with :
29+ name : spice.unsigned.taco
30+ github-token : ${{ secrets.GITHUB_TOKEN }}
31+ run-id : ${{ inputs.workflow_run_id }}
32+
33+ - name : Copy unsigned taco
2334 run : |
24- python -m venv .venv && \
25- .venv\\Scripts\\activate && \
26- python -m pip install --quiet --upgrade pip setuptools wheel && \
27- pip install --quiet . && \
28- echo "Running connector packager..." && \
29- python -m connector_packager.package ../../spice_jdbc > NUL && \
30- TACO_FILE=$(for /f "delims=" %i in ('dir /b /s spice*.taco') do @echo %i) && \
31- echo "Packaged TACO file: %TACO_FILE%" && \
32- copy "%TACO_FILE%" ../../spice.taco && \
33- echo "📦 TACO package is ready: ./spice.taco"
34- shell : cmd
35+ cp spice.taco ${{ inputs.signed_binary_name }}
36+ echo "Signed binary name: ${{ inputs.signed_binary_name }}"
3537
3638 - name : Set up Java for signing
3739 uses : actions/setup-java@v4
4143
4244 - name : Sign ${{ inputs.signed_binary_name}}
4345 env :
46+ DIGICERT_TOKEN_PASSWORD : ${{ secrets.DIGICERT_TOKEN_PASSWORD }}
4447 DIGICERT_KEY_ALIAS : ${{ secrets.DIGICERT_KEY_ALIAS }}
48+ DIGICERT_TOKEN_CFG_PATH : ${{ secrets.DIGICERT_TOKEN_CFG_PATH }}
4549 run : |
46- jarsigner -tsa http://timestamp.digicert.com -verbose -keystore NONE -storetype PKCS11 -providerClass sun.security.pkcs11.SunPKCS11 -providerArg pkcs11properties.cfg -sigalg SHA256withRSA -signedjar ${{ inputs.signed_binary_name}} spice.taco %DIGICERT_KEY_ALIAS%
50+ echo "$DIGICERT_TOKEN_PASSWORD" | jarsigner -verbose `
51+ -tsa http://timestamp.digicert.com `
52+ -keystore NONE `
53+ -storetype PKCS11 `
54+ -providerClass sun.security.pkcs11.SunPKCS11 `
55+ -providerArg "$DIGICERT_TOKEN_CFG_PATH" `
56+ -sigalg SHA256withRSA `
57+ -signedjar ${{ inputs.signed_binary_name}} `
58+ spice.taco `
59+ "$DIGICERT_KEY_ALIAS"
4760
4861 - name : Upload to release
4962 uses : softprops/action-gh-release@v2
0 commit comments