From 8f11d2b1c9ac2b9b66625ebbf9ec65c3e99471e0 Mon Sep 17 00:00:00 2001 From: kangfenmao Date: Thu, 19 Dec 2024 17:24:39 +0800 Subject: [PATCH] chore: remove release and build workflow, update release workflow for macos-latest --- .github/workflows/build.yml | 94 ----------------------------------- .github/workflows/release.yml | 5 +- 2 files changed, 3 insertions(+), 96 deletions(-) delete mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index d040cd2b..00000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,94 +0,0 @@ -name: Release - -on: - workflow_dispatch: - inputs: - version: - description: 'Version (e.g. v1.2.3)' - required: true - type: string - push: - tags: - - v*.*.* - -permissions: - contents: write - -jobs: - release: - runs-on: ${{ matrix.os }} - - strategy: - matrix: - os: [macos-13, macos-latest] - arch: [x64, arm64] - exclude: - - os: windows-latest - arch: arm64 - - os: macos-latest - arch: x64 - - os: macos-13 - arch: arm64 - - steps: - - name: Check out Git repository - uses: actions/checkout@v3 - - - name: Install Node.js - uses: actions/setup-node@v3 - with: - node-version: 20 - arch: ${{ matrix.arch }} - - - name: Install corepack - run: corepack enable && corepack prepare yarn@4.3.1 --activate - - - name: Install Dependencies - run: yarn install - - - name: Build Linux - if: matrix.os == 'ubuntu-latest' - run: yarn build:linux - env: - GH_TOKEN: ${{ secrets.GH_TOKEN }} - ARCH: ${{ matrix.arch }} - - - name: Build Mac - if: matrix.os == 'macos-13' - run: yarn build:mac - env: - CSC_LINK: ${{ secrets.CSC_LINK }} - CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }} - APPLE_ID: ${{ vars.APPLE_ID }} - APPLE_APP_SPECIFIC_PASSWORD: ${{ vars.APPLE_APP_SPECIFIC_PASSWORD }} - APPLE_TEAM_ID: ${{ vars.APPLE_TEAM_ID }} - GH_TOKEN: ${{ secrets.GH_TOKEN }} - ARCH: ${{ matrix.arch }} - - - name: Build Windows - if: matrix.os == 'windows-latest' - run: yarn build:win - env: - GH_TOKEN: ${{ secrets.GH_TOKEN }} - ARCH: ${{ matrix.arch }} - - - name: Replace spaces in filenames - run: node scripts/replaceSpaces.js - - - name: Release - uses: softprops/action-gh-release@v2 - with: - draft: true - files: | - dist/*.exe - dist/*.zip - dist/*.dmg - dist/*.AppImage - dist/*.snap - dist/*.deb - dist/*.rpm - dist/*.tar.gz - dist/latest*.yml - dist/*.blockmap - env: - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 59d138e9..7ff29dc4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,7 +20,8 @@ jobs: strategy: matrix: - os: [macos-13, macos-latest, windows-latest, ubuntu-latest] + # windows-latest, ubuntu-latest + os: [macos-13, macos-latest] arch: [x64, arm64] exclude: - os: windows-latest @@ -54,7 +55,7 @@ jobs: ARCH: ${{ matrix.arch }} - name: Build Mac - if: matrix.os == 'macos-13' + if: matrix.os == 'macos-13' || matrix.os == 'macos-latest' run: yarn build:mac env: CSC_LINK: ${{ secrets.CSC_LINK }}