mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-10 18:02:55 +00:00
36 lines
776 B
YAML
36 lines
776 B
YAML
name: Publish Mac
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
|
|
jobs:
|
|
Build:
|
|
name: Build Mac
|
|
runs-on: macos-12
|
|
environment: build
|
|
|
|
if: startsWith(github.event.ref, 'refs/tags/v')
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Use Node.js 20.x
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 20.x
|
|
|
|
- name: Build
|
|
env:
|
|
APPLEID: ${{ secrets.APPLEID }}
|
|
APPLEIDPASS: ${{ secrets.APPLEIDPASS }}
|
|
CSC_LINK: ${{ secrets.CSC_LINK }}
|
|
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
|
|
DP_KEY: ${{ secrets.DP_KEY }}
|
|
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
GH_REPOSITORY: ${{ github.repository }}
|
|
run: |
|
|
./cmd electron mac
|
|
|