Skip to content

chore(ci): license error #8

chore(ci): license error

chore(ci): license error #8

name: Deploy to HuggingFace Spaces
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
lfs: true
- run: |-
git clone https://$HF_USERNAME:[email protected]/spaces/moeru-ai/moonshine-web-vue --depth 1 packages/moonshine-web/dist
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
HF_USERNAME: ${{ secrets.HF_USERNAME }}
- run: |-
git clone https://$HF_USERNAME:[email protected]/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
- name: Push to hub
working-directory: ./packages/moonshine-web/dist
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
HF_USERNAME: ${{ secrets.HF_USERNAME }}
run: |-
mv ../README.md .
git add .
git config --local user.email "[email protected]"
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 "[email protected]"
git config --local user.name "Neko Ayaka"
git commit -m "release: build ${{ github.sha }}"
git push -f