From 287a03f236ed9e630e404cb6e2a17ca9e9ac4e3c Mon Sep 17 00:00:00 2001 From: Tim Cheung Date: Sun, 18 Jun 2023 23:56:53 +0100 Subject: [PATCH] fix ci workflow --- .github/workflows/ci.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8e03dcce..974ff538 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,7 +41,15 @@ jobs: - uses: actions/checkout@v2 - run: npm ci - run: npm run build - - run: npm run dist:${{ matrix.dist-target }} -- --publish never + - if: matrix.os == 'ubuntu-latest' + run: npm run dist:macos -- --publish never + env: + CSC_LINK: ${{ secrets.CSC_LINK }} + CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }} + APPLE_ID: ${{ secrets.APPLE_ID }} + APPLE_ID_APP_PASSWORD: ${{ secrets.APPLE_ID_APP_PASSWORD }} + - if: matrix.os != 'macos-latest' + run: npm run dist:${{ matrix.dist-target }} -- --publish never - uses: actions/upload-artifact@v2 with: name: ${{ github.event.repository.name }}-${{ matrix.dist-target }}