chore(ci): configure for Whisper WebGPU
This commit is contained in:
@@ -20,6 +20,21 @@ jobs:
|
||||
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
||||
HF_USERNAME: ${{ secrets.HF_USERNAME }}
|
||||
|
||||
- run: |-
|
||||
git clone https://$HF_USERNAME:$HF_TOKEN@huggingface.co/spaces/moeru-ai/whisper-webgpu-vue --depth 1 packages/whisper-webgpu/dist
|
||||
env:
|
||||
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
||||
HF_USERNAME: ${{ secrets.HF_USERNAME }}
|
||||
|
||||
- uses: pnpm/action-setup@v3
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: lts/*
|
||||
cache: pnpm
|
||||
|
||||
- run: pnpm install
|
||||
- run: pnpm build
|
||||
|
||||
- uses: pnpm/action-setup@v3
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
@@ -41,3 +56,16 @@ jobs:
|
||||
git config --local user.name "Neko Ayaka"
|
||||
git commit -m "release: build ${{ github.sha }}"
|
||||
git push -f
|
||||
|
||||
- name: Push to hub
|
||||
working-directory: ./packages/whisper-webgpu/dist
|
||||
env:
|
||||
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
||||
HF_USERNAME: ${{ secrets.HF_USERNAME }}
|
||||
run: |-
|
||||
mv ../README.md .
|
||||
git add .
|
||||
git config --local user.email "neko@ayaka.moe"
|
||||
git config --local user.name "Neko Ayaka"
|
||||
git commit -m "release: build ${{ github.sha }}"
|
||||
git push -f
|
||||
|
||||
Reference in New Issue
Block a user