Skip to content

Package and publish #153

Package and publish

Package and publish #153

Workflow file for this run

name: Package and publish
on:
workflow_dispatch:
push:
tags:
- "*"
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: false
concurrency:
group: boson-publish
cancel-in-progress: true
jobs:
publish:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest]
steps:
- name: Checkout git repo
uses: actions/checkout@v4
- name: Install Node and NPM
uses: actions/setup-node@v4
with:
node-version: 18
cache: npm
- name: Brew install dependencies
run: |
brew install pkg-config cairo pango libpng jpeg giflib librsvg pixman
- name: Add MacOS certs
run: chmod +x tools/add-macos-cert.sh && ./tools/add-macos-cert.sh
env:
MACOS_CERT_P12: ${{ secrets.CSC_LINK }}
MACOS_CERT_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
- name: Run install
uses: borales/actions-yarn@v5
with:
cmd: install
# It seems we need to delete the draft release or often it will fail
# uploading assets.
- name: Delete drafts
uses: hugo19941994/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Make
uses: borales/actions-yarn@v5
env:
# These values are used for auto updates signing
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_ID_PASS: ${{ secrets.APPLE_ID_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
APPLE_IDENTITY: ${{ secrets.APPLE_IDENTITY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
cmd: make --arch arm64,x64,universal
- name: Publish
uses: borales/actions-yarn@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
cmd: publish