Skip to content

Commit acdccff

Browse files
committed
Build updates
1 parent 97acb42 commit acdccff

2 files changed

Lines changed: 32 additions & 13 deletions

File tree

.github/workflows/build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,9 @@ jobs:
2424
- name: Make Package
2525
run: |
2626
make package
27+
28+
- name: Upload Artifact
29+
uses: actions/upload-artifact@v4
30+
with:
31+
name: spice.unsigned.taco
32+
path: spice.taco

.github/workflows/release.yml

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: release
22
on:
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
@@ -41,9 +43,20 @@ jobs:
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

Comments
 (0)