From 2baac618a80d0a11c432b68922d04bafd01f33f5 Mon Sep 17 00:00:00 2001 From: MystiPanda Date: Thu, 15 Feb 2024 19:13:17 +0800 Subject: [PATCH] chore: update ci script --- .github/workflows/alpha.yml | 2 ++ .github/workflows/release.yml | 30 ------------------------------ 2 files changed, 2 insertions(+), 30 deletions(-) diff --git a/.github/workflows/alpha.yml b/.github/workflows/alpha.yml index 57adcb79..6dcce6a7 100644 --- a/.github/workflows/alpha.yml +++ b/.github/workflows/alpha.yml @@ -3,6 +3,8 @@ name: Alpha Build on: workflow_dispatch: push: + branches: [main] + tags-ignore: [updater,alpha] permissions: write-all env: CARGO_INCREMENTAL: 0 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 501e74f0..fa6fc35b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,9 +2,6 @@ name: Release Build on: workflow_dispatch: - push: - tags: - - v** permissions: write-all env: CARGO_INCREMENTAL: 0 @@ -134,30 +131,3 @@ jobs: body: "More new features are now supported." token: ${{ secrets.GITHUB_TOKEN }} files: src-tauri/target/${{ matrix.target }}/release/bundle/deb/*.deb - - release-update: - needs: [release] - runs-on: ubuntu-latest - if: startsWith(github.ref, 'refs/tags/v') - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Install Node - uses: actions/setup-node@v4 - with: - node-version: "20" - - - uses: pnpm/action-setup@v2 - name: Install pnpm - with: - version: 8 - run_install: false - - - name: Pnpm install - run: pnpm i - - - name: Release updater file - run: pnpm updater - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}