Skip to content

Commit c6b9908

Browse files
committed
Updated package path to use $RUNNER_TEMP path and rename Windows runner to spacetimedb-windows-runner
1 parent 5e6dd74 commit c6b9908

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/package.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
# - { name: aarch64 Linux musl, target: aarch64-unknown-linux-musl, runner: arm-runner }
2626
- { name: aarch64 macOS, target: aarch64-apple-darwin, runner: macos-latest }
2727
- { name: x86_64 macOS, target: x86_64-apple-darwin, runner: macos-latest }
28-
- { name: x86_64 Windows, target: x86_64-pc-windows-msvc, runner: windows-latest }
28+
- { name: x86_64 Windows, target: x86_64-pc-windows-msvc, runner: spacetimedb-windows-runner }
2929

3030
name: Build CLI for ${{ matrix.name }}
3131
runs-on: ${{ matrix.runner }}
@@ -69,16 +69,18 @@ jobs:
6969
- name: Decode DigiCert client auth certificate
7070
if: ${{ runner.os == 'Windows' && startsWith(github.ref, 'refs/tags/') }}
7171
shell: bash
72+
env:
73+
SM_CLIENT_CERT_FILE_B64: ${{ secrets.SM_CLIENT_CERT_FILE_B64 }}
7274
run: |
73-
echo "${{ secrets.SM_CLIENT_CERT_FILE_B64 }}" | base64 --decode > /d/Certificate_pkcs12.p12
75+
echo "$SM_CLIENT_CERT_FILE_B64" | base64 --decode > "$RUNNER_TEMP/Certificate_pkcs12.p12"
7476
7577
- name: Setup DigiCert Software Trust Manager
7678
if: ${{ runner.os == 'Windows' && startsWith(github.ref, 'refs/tags/') }}
7779
uses: digicert/code-signing-software-trust-action@v1
7880
env:
7981
SM_HOST: ${{ vars.SM_HOST }}
8082
SM_API_KEY: ${{ secrets.SM_API_KEY }}
81-
SM_CLIENT_CERT_FILE: D:\Certificate_pkcs12.p12
83+
SM_CLIENT_CERT_FILE: ${{ runner.temp }}\Certificate_pkcs12.p12
8284
SM_CLIENT_CERT_PASSWORD: ${{ secrets.SM_CLIENT_CERT_PASSWORD }}
8385

8486
- name: Compile
@@ -91,7 +93,7 @@ jobs:
9193
env:
9294
SM_HOST: ${{ vars.SM_HOST }}
9395
SM_API_KEY: ${{ secrets.SM_API_KEY }}
94-
SM_CLIENT_CERT_FILE: D:\Certificate_pkcs12.p12
96+
SM_CLIENT_CERT_FILE: ${{ runner.temp }}\Certificate_pkcs12.p12
9597
SM_CLIENT_CERT_PASSWORD: ${{ secrets.SM_CLIENT_CERT_PASSWORD }}
9698
DIGICERT_KEYPAIR_ALIAS: ${{ secrets.DIGICERT_KEYPAIR_ALIAS }}
9799
run: |

0 commit comments

Comments
 (0)