fix(ci): 改回 gh release download,当前仓库已有 sidecar release
This commit is contained in:
@@ -73,6 +73,15 @@ jobs:
|
||||
-output tauri-app/src-tauri/binaries/ffprobe-universal-apple-darwin
|
||||
fi
|
||||
|
||||
- name: Download sidecar binaries
|
||||
shell: pwsh
|
||||
run: |
|
||||
New-Item -ItemType Directory -Force -Path tauri-app/src-tauri/binaries
|
||||
gh release download v0.0.0-sidecar --repo ${{ github.repository }} --pattern "sidecar-binaries.tar.gz" --dir $env:TEMP
|
||||
tar xzf "$env:TEMP\sidecar-binaries.tar.gz" -C tauri-app/src-tauri/binaries/
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
|
||||
- name: Install dependencies
|
||||
working-directory: tauri-app
|
||||
run: npm ci
|
||||
@@ -136,13 +145,6 @@ jobs:
|
||||
path: tauri-app/node_modules
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('tauri-app/package-lock.json') }}
|
||||
|
||||
- name: Download sidecar binaries
|
||||
shell: pwsh
|
||||
run: |
|
||||
New-Item -ItemType Directory -Force -Path tauri-app/src-tauri/binaries
|
||||
curl.exe -L -o "$env:TEMP\sidecar-binaries.tar.gz" "https://github.com/${{ github.repository }}/releases/download/v0.0.0-sidecar/sidecar-binaries.tar.gz"
|
||||
tar xzf "$env:TEMP\sidecar-binaries.tar.gz" -C tauri-app/src-tauri/binaries/
|
||||
|
||||
- name: Install dependencies
|
||||
working-directory: tauri-app
|
||||
run: npm ci
|
||||
|
||||
Reference in New Issue
Block a user