From 35bf64d5e5b7498900e9a26dbfaf2d9b56c89a0d Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Tue, 11 Aug 2026 12:39:09 -0700 Subject: [PATCH] Redistributable builds take 2 --- .gitea/workflows/build.yaml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 47dd003..ad75051 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -29,21 +29,22 @@ jobs: - name: Build run: | make -C "${{ gitea.workspace }}/clash" deploy-build - - name: Prepare archive - run: | - mkdir usr/ - target="${PWD}/usr" - cd "${{ gitea.workspace }}/clash" - make PREFIX="${target}" deploy-install - name: Make artifact name id: name run: | short_sha="$(git rev-parse --short HEAD)" branch="${{ github.head_ref || github.ref_name }}" echo "name=chash-${branch}-${short_sha}" >> "$GITEA_OUTPUT" + - name: Make archive + run: | + archive="${PWD}/archive.tar.gz" + cd "${{ gitea.workspace }}/clash" + mkdir usr/ + make PREFIX="usr/" deploy-install + tar -caf "${archive}" usr/ - name: Upload Artifacts uses: actions/upload-artifact@v3 with: - path: usr/ - name: ${{ steps.name.outputs.name }} - archive: true + path: archive.tar.gz + name: "${{ steps.name.outputs.name }}.tar.gz" + archive: false