From 575069ea6fe4aa3af4e37d97cb59e3ce343ef3f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9A=E5=BD=AA?= <1315508912@qq.com> Date: Sun, 17 Dec 2023 23:38:52 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9ci?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 32a6e1e..bd68d37 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,5 +1,8 @@ name: Build +permissions: + contents: write + on: push: branches: @@ -60,12 +63,15 @@ jobs: - kind: AppImage cpu: x64 package-tail: .x86_64 + package-head: DownKyi- - kind: deb cpu: x64 - package-tail: .x86_64 + package-tail: _amd64 + package-head: DownKyi_ - kind: rpm cpu: x64 package-tail: .x86_64 + package-head: DownKyi_ steps: - name: Checkout uses: actions/checkout@v3 @@ -98,14 +104,18 @@ jobs: - name: Upload build artifacts ${{ matrix.kind }} uses: actions/upload-artifact@v3 with: - name: DownKyi-${{ steps.version.outputs.content }}-1.${{ matrix.package-tail }}.${{ matrix.kind }} - path: script/pupnet/output/DownKyi-${{ steps.version.outputs.content }}-1.${{ matrix.package-tail }}.${{ matrix.kind }} + name: ${{ matrix.package-head }}${{ steps.version.outputs.content }}_linux_${{ matrix.package-tail }}.${{ matrix.kind }} + path: script/pupnet/output/${{ matrix.package-head }}${{ steps.version.outputs.content }}-1${{ matrix.package-tail }}.${{ matrix.kind }} + - name: Change Name + if: ${{ startsWith(github.ref, 'refs/tags/') }} + run: mv "${{ matrix.package-head }}${{ steps.version.outputs.content }}-1${{ matrix.package-tail }}.${{ matrix.kind }}" "${{ matrix.package-head }}${{ steps.version.outputs.content }}_linux_${{ matrix.package-tail }}.${{ matrix.kind }}" + working-directory: ./script/pupnet/output/ - name: Release uses: ncipollo/release-action@v1 if: ${{ startsWith(github.ref, 'refs/tags/') }} with: allowUpdates: true - artifacts: script/pupnet/output/DownKyi-${{ steps.version.outputs.content }}-1.${{ matrix.package-tail }}.${{ matrix.kind }} + artifacts: script/pupnet/output/${{ matrix.package-head }}${{ steps.version.outputs.content }}_linux_${{ matrix.package-tail }}.${{ matrix.kind }} build-macos: runs-on: macos-latest strategy: