Skip to content

chore: added ci

chore: added ci #10

Workflow file for this run

name: Sign test
on:
pull_request:
branches: [ main ]
defaults:
run:
working-directory: ./
jobs:
sign:
runs-on: windows-2022
permissions:
contents: 'read'
id-token: 'write'
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 'Google auth'
id: 'auth'
uses: 'google-github-actions/auth@v2'
with:
project_id: 'shinkai-412316'
workload_identity_provider: 'projects/511721742630/locations/global/workloadIdentityPools/github/providers/shinkai-apps'
- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v2'
with:
project_id: 'shinkai-412316'
- name: Set up Java
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'temurin'
- name: Download Jsign
shell: bash
run: curl -O https://github.com/ebourg/jsign/releases/download/7.0/jsign-7.0.jar
- name: Cert to file
shell: bash
run: |
echo -n "$EV_CODE_SIGNING_CERTIFICATE" > OS20241029372986.cer
- name: Sign
shell: bash
run: >
java -jar jsign-7.0.jar \
--storetype GOOGLECLOUD \
--storepass "$(gcloud auth print-access-token)" \
--keystore "projects/shinkai-412316/locations/us/keyRings/shinkai-apps" \
--alias "EVCodeSigning" \
--certfile "OS20241029372986.pem" \
--tsmode RFC3161 \
--tsaurl http://timestamp.globalsign.com/tsa/r6advanced1 \
package.json