From 9e369589dbb8ef46ce4b059dbed0e69e7645e8f1 Mon Sep 17 00:00:00 2001 From: bangbang93 Date: Fri, 2 Feb 2024 16:02:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3release=E5=8F=91?= =?UTF-8?q?=E5=B8=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ef75bac..774c924 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,7 +9,13 @@ jobs: tagged-release: strategy: matrix: - os: [ubuntu-latest, windows-latest, macos-latest] + include: + - os: ubuntu-latest + artifact_name: "openbmclapi-linux.tar.xz" + - os: windows-latest + artifact_name: "openbmclapi-windows.tar.xz" + - os: macos-latest + artifact_name: "openbmclapi-macos.tar.xz" name: "Tagged Release" runs-on: "ubuntu-latest" @@ -21,12 +27,13 @@ jobs: cache: 'npm' - run: npm ci - run: npm run build - - run: tar -czvf openbmclapi-${{ matrix.os }}.tar.gz dist nginx package.json node_modules - - uses: "marvinpinto/action-automatic-releases@latest" + - run: tar -cJf ${{ matrix.artifact_name }} dist nginx package.json node_modules + - name: Upload binaries to release + uses: svenstaro/upload-release-action@v2 with: - repo_token: "${{ secrets.GITHUB_TOKEN }}" - prerelease: false - files: openbmclapi-${{ matrix.os }}.tar.gz + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: ${{ matrix.artifact_name }} + tag: ${{ github.ref }}