Skip to content

Bump version from 0.1.69 to 0.1.70 (#133) #45

Bump version from 0.1.69 to 0.1.70 (#133)

Bump version from 0.1.69 to 0.1.70 (#133) #45

Workflow file for this run

name: Release DMG
on:
workflow_dispatch:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
build-dmg:
runs-on: macos-latest
environment: release
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 24
cache: npm
- name: Install dependencies
run: npm ci
- name: Run typecheck
run: npm run typecheck
- name: Run tests
run: npm test
- name: Rebuild native modules for Electron
run: npm run rebuild:electron
- name: Build, sign, and notarize
run: |
npm run build
npx electron-builder --mac --publish never
env:
CSC_LINK: ${{ secrets.CSC_LINK }}
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
- name: Create GitHub Release
if: startsWith(github.ref, 'refs/tags/')
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG_NAME: ${{ github.ref_name }}
run: |
if gh release view "$TAG_NAME" &>/dev/null; then
gh release upload "$TAG_NAME" dist/*.dmg dist/*.zip dist/*.yml dist/*.blockmap --clobber
else
gh release create "$TAG_NAME" dist/*.dmg dist/*.zip dist/*.yml dist/*.blockmap --generate-notes
fi
- name: Upload artifacts (manual runs)
if: github.event_name == 'workflow_dispatch'
uses: actions/upload-artifact@v4
with:
name: manifold-release
path: |
dist/*.dmg
dist/*.zip
dist/*.yml
dist/*.blockmap