From 8174ab7616175790356d0a55acc5ea7b2b8622a9 Mon Sep 17 00:00:00 2001 From: GyDi Date: Thu, 16 Mar 2023 23:54:14 +0800 Subject: [PATCH] chore: fix ci --- .github/workflows/alpha.yml | 5 ++--- .github/workflows/meta.yml | 35 ++++++++++++++++++----------------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/.github/workflows/alpha.yml b/.github/workflows/alpha.yml index b549367..7c1b090 100644 --- a/.github/workflows/alpha.yml +++ b/.github/workflows/alpha.yml @@ -92,14 +92,13 @@ jobs: releaseName: "Clash Verge Alpha" releaseBody: "Alpha Version (include debug)" releaseDraft: false - includeDebug: ${{ github.event.inputs.debug }} prerelease: true - args: -f default-meta + includeDebug: ${{ github.event.inputs.debug }} - name: Portable Bundle if: matrix.os == 'windows-latest' run: | - yarn build -f default-meta + yarn build yarn run portable env: TAG_NAME: alpha diff --git a/.github/workflows/meta.yml b/.github/workflows/meta.yml index 58c714e..a26d9f0 100644 --- a/.github/workflows/meta.yml +++ b/.github/workflows/meta.yml @@ -39,6 +39,23 @@ jobs: with: node-version: 16 + - name: Delete current release assets + if: matrix.os == 'ubuntu-latest' + uses: mknejp/delete-release-assets@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + tag: meta + fail-if-no-assets: false + fail-if-no-release: false + assets: | + *.zip + *.gz + *.AppImage + *.deb + *.dmg + *.msi + *.sig + - name: Install Dependencies (ubuntu only) if: startsWith(matrix.os, 'ubuntu-') run: | @@ -63,22 +80,6 @@ jobs: yarn install --network-timeout 1000000 yarn run check - - name: Delete current release assets - uses: mknejp/delete-release-assets@v1 - with: - token: ${{ secrets.GITHUB_TOKEN }} - tag: meta - fail-if-no-assets: false - fail-if-no-release: false - assets: | - *.zip - *.gz - *.AppImage - *.deb - *.dmg - *.msi - *.sig - - name: Tauri build uses: tauri-apps/tauri-action@v0 env: @@ -99,7 +100,7 @@ jobs: yarn build -f default-meta yarn run portable env: - TAG_NAME: alpha + TAG_NAME: meta GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}