Skip to content

Commit

Permalink
fix: 修正release发布
Browse files Browse the repository at this point in the history
  • Loading branch information
bangbang93 committed Feb 2, 2024
1 parent 3bb57d8 commit 9e36958
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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 }}



0 comments on commit 9e36958

Please sign in to comment.