Build Dev Mac #13
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 | |
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@v2 | |
with: | |
ref: dev | |
- name: 安装依赖 | |
run: | | |
yarn | |
- name: 构建 ${{ runner.arch }} | |
run: | | |
yarn make | |
mkdir upload-dist | |
yarn push:dev | |
- name: Download artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: app | |
path: upload-dist |