mirror of
https://github.com/standardnotes/web.git
synced 2024-11-22 09:26:21 +03:00
chore(ci): correct keypair alias [skip e2e]
This commit is contained in:
parent
bb0d2d2c5e
commit
d1782135ee
10
.github/workflows/desktop.release.reuse.yml
vendored
10
.github/workflows/desktop.release.reuse.yml
vendored
@ -248,6 +248,8 @@ jobs:
|
||||
|
||||
Windows:
|
||||
runs-on: windows-latest
|
||||
env:
|
||||
SM_KEYPAIR_ALIAS: ${{ secrets.SM_KEYPAIR_ALIAS }}
|
||||
|
||||
defaults:
|
||||
run:
|
||||
@ -294,14 +296,6 @@ jobs:
|
||||
run: |
|
||||
export DEBUG='electron-builder'
|
||||
|
||||
echo "version=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
|
||||
echo "KEYPAIR_NAME=snkeypair" >> $GITHUB_OUTPUT
|
||||
echo "CERTIFICATE_NAME=sncertificate" >> $GITHUB_OUTPUT
|
||||
|
||||
echo "::set-output name=version::${GITHUB_REF#refs/tags/v}"
|
||||
echo "::set-output name=KEYPAIR_NAME::snkeypair"
|
||||
echo "::set-output name=CERTIFICATE_NAME::sncertificate"
|
||||
|
||||
echo "SM_HOST=${{ secrets.SM_HOST }}" >> "$GITHUB_ENV"
|
||||
echo "SM_API_KEY=${{ secrets.SM_API_KEY }}" >> "$GITHUB_ENV"
|
||||
echo "SM_CLIENT_CERT_FILE=D:\\Certificate_pkcs12.p12" >> "$GITHUB_ENV"
|
||||
|
@ -1,7 +1,9 @@
|
||||
exports.default = async function (configuration) {
|
||||
if (configuration.path) {
|
||||
const keypairAlias = process.env.SM_KEYPAIR_ALIAS
|
||||
|
||||
require('child_process').execSync(
|
||||
`smctl sign --keypair-alias=snkeypair --input "${String(configuration.path)}" --verbose`,
|
||||
`smctl sign --keypair-alias="${keypairAlias}" --input "${String(configuration.path)}" --verbose`,
|
||||
{
|
||||
stdio: 'inherit',
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user