From 31b1c6031d4370ac0e2fc15a6908c66d66dae605 Mon Sep 17 00:00:00 2001 From: anosora233 <86921203+anosora233@users.noreply.github.com> Date: Sun, 24 Mar 2024 16:20:45 +0800 Subject: [PATCH] chore: remove autobuild for proxinject --- .github/workflows/release.yml | 30 +++++------------------------- 1 file changed, 5 insertions(+), 25 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 94c2cbe..cf7a5a1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,26 +7,10 @@ on: workflow_dispatch: jobs: - build: - runs-on: windows-latest - steps: - - uses: actions/checkout@v4 - with: - repository: PragmaTwice/proxinject - fetch-depth: 0 - - - name: Build proxinject - run: | - ./build.ps1 -mode Release -arch x64 - - - uses: actions/upload-artifact@v4 - with: - name: proxinject-${{ github.sha }} - path: release - pack: runs-on: windows-latest - needs: build + env: + PROXINJECT: https://github.com/PragmaTwice/proxinject/releases/download/v0.5.0-pre/proxinject-v0.5.0-pre-x64.zip steps: - uses: actions/checkout@v4 @@ -34,19 +18,15 @@ jobs: with: python-version: 3.12 - - uses: actions/download-artifact@v4 - with: - path: proxinject - merge-multiple: true - - name: Pack mhmp run: | - python -m pip install --upgrade pip python -m pip install -r requirements.txt python -m pip install pyinstaller pyinstaller --clean mhmp.spec #### - mv proxinject dist/mhmp/ + curl ${{ env.PROXINJECT }} -Lo proxinject.zip + unzip proxinject.zip + mv release dist/mhmp/proxinject 7z a mhmp-${{ github.ref_name }}-win64.7z ./dist/mhmp/ - uses: actions/upload-artifact@v4