1.11.0 #36
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
tags: | |
- v* | |
jobs: | |
build: | |
name: Build (${{ matrix.os }}) | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ macos-latest, windows-latest ] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: 16.x | |
- name: Setup Code Signing | |
if: startsWith(matrix.os, 'macos') | |
env: | |
MACOS_CERTIFICATE: ${{ secrets.MACOS_CERTIFICATE }} | |
run: | | |
echo $MACOS_CERTIFICATE | base64 --decode > certificate.p12 | |
security create-keychain -p actions build.keychain | |
security default-keychain -s build.keychain | |
security unlock-keychain -p actions build.keychain | |
security import certificate.p12 -k build.keychain -P "" -T /usr/bin/codesign; | |
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k actions build.keychain | |
rm certificate.p12 | |
- name: Setup | |
run: npm ci | |
- name: Release | |
if: startsWith(github.ref, 'refs/tags/') | |
run: npm run publish | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
APPLE_ID: ${{ secrets.APPLE_ID }} | |
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }} | |
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }} |