From 1d1e0ae591a9522cd5debb692eb8551b6c427cf2 Mon Sep 17 00:00:00 2001 From: liangsky <640634387@qq.com> Date: Sun, 24 Sep 2023 22:15:59 +0800 Subject: [PATCH] ci: build.yml --- .github/workflows/build.yml | 44 +++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..8fba327 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,44 @@ +name: Build/release + +on: + push: + branches: + - master + paths: + - 'src/**' + workflow_dispatch: + +jobs: + mac: + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [macos-latest] + + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Install Node.js, NPM and Yarn + uses: actions/setup-node@v1 + with: + node-version: 16 + + - name: Install pnpm + uses: pnpm/action-setup@v2.2.4 + + - name: Install dependencies + run: pnpm i + + - name: build mac Electron app + run: pnpm electron:build:mac + + - name: Upload File + uses: actions/upload-artifact@v3 + with: + name: mac + path: | + dist_electron/*dmg + dist_electron/latest-mac.yml