diff --git a/.github/workflows/deploy-huggingface-spaces.yml b/.github/workflows/deploy-huggingface-spaces.yml index 4615a951f..c07c0ccc9 100644 --- a/.github/workflows/deploy-huggingface-spaces.yml +++ b/.github/workflows/deploy-huggingface-spaces.yml @@ -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 diff --git a/packages/moonshine-web/README.md b/packages/moonshine-web/README.md index 10dfab85d..cea00b898 100644 --- a/packages/moonshine-web/README.md +++ b/packages/moonshine-web/README.md @@ -5,11 +5,11 @@ colorFrom: blue colorTo: pink sdk: static pinned: false -license: apache-2.0 +license: MIT models: - onnx-community/moonshine-base-ONNX short_description: Yet another Real-time in-browser STT, re-implemented in Vue -thumbnail: https://raw.githubusercontent.com/moeru-ai/airi/refs/heads/main/packages/whisper-webgpu/public/banner.png +thumbnail: https://raw.githubusercontent.com/moeru-ai/airi/refs/heads/main/packages/moonshine-web/public/banner.png ---