Build Release Mac #5
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 Release Mac | |
on: | |
repository_dispatch: | |
workflow_dispatch: | |
inputs: | |
ssh: | |
description: "SSH connection to Actions" | |
required: false | |
default: "false" | |
jobs: | |
build: | |
name: macos-latest | |
runs-on: macos-latest | |
permissions: | |
contents: write | |
packages: write | |
steps: | |
- name: Node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 18 | |
- name: 拉取自身仓库代码 | |
uses: actions/checkout@main | |
- name: 安装依赖 | |
run: | | |
yarn | |
- name: 构建 ${{ runner.arch }} | |
run: | | |
yarn make | |
yarn push:release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |