dootask/.github/workflows/publish-desktop.yml
2023-03-20 01:17:51 +08:00

34 lines
772 B
YAML

name: Publish Desktop
on:
push:
tags:
- 'v*'
jobs:
build-mac:
runs-on: macos-latest
environment: build
if: startsWith(github.event.ref, 'refs/tags/v')
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js 16.x
uses: actions/setup-node@v1
with:
node-version: 16.x
- name: Build for MacOS
env:
APPLEID: ${{ secrets.APPLEID }}
APPLEIDPASS: ${{ secrets.APPLEIDPASS }}
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
CSC_LINK: ${{ secrets.CSC_LINK }}
GH_REPOSITORY: ${{ github.repository }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
DP_KEY: ${{ secrets.DP_KEY }}
run: ./cmd electron workflows