feat: Silero VAD + compression ratio hallucination guard #3
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| workflow_dispatch: | |
| inputs: | |
| tag: | |
| description: 'Tag to build (e.g. v1.0.1)' | |
| required: true | |
| default: 'v1.0.1' | |
| permissions: | |
| contents: write | |
| packages: write | |
| jobs: | |
| docker: | |
| name: Build & Push Docker image (multi-arch) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v3 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Login to GitHub Container Registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Docker metadata | |
| id: meta | |
| uses: docker/metadata-action@v5 | |
| with: | |
| images: ghcr.io/${{ github.repository }} | |
| tags: | | |
| type=semver,pattern={{version}} | |
| type=semver,pattern={{major}}.{{minor}} | |
| type=raw,value=latest | |
| - name: Build and push (linux/amd64 + linux/arm64) | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: . | |
| platforms: linux/amd64,linux/arm64 | |
| push: true | |
| tags: ${{ steps.meta.outputs.tags }} | |
| labels: ${{ steps.meta.outputs.labels }} | |
| build-args: | | |
| VERSION=${{ github.ref_name }} | |
| COMMIT=${{ github.sha }} | |
| BUILD_DATE=${{ github.event.head_commit.timestamp }} | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max | |
| release: | |
| name: Update GitHub Release notes | |
| runs-on: ubuntu-latest | |
| needs: docker | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Get tag name | |
| id: tag | |
| run: echo "tag=${GITHUB_REF_NAME:-${{ github.event.inputs.tag }}}" >> $GITHUB_OUTPUT | |
| - name: Create or update GitHub Release | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| TAG="${{ steps.tag.outputs.tag }}" | |
| NOTES="## moonshine-whisper ${TAG} | |
| Fast speech-to-text HTTP service via Moonshine + sherpa-onnx. | |
| **2.4× faster than faster-whisper Python on ARM64 CPU.** | |
| ### Install (one-line) | |
| \`\`\`bash | |
| curl -fsSL https://raw.githubusercontent.com/anatolykoptev/moonshine-whisper/main/install.sh | sh | |
| \`\`\` | |
| ### Docker pull (multi-arch: linux/amd64 + linux/arm64) | |
| \`\`\`bash | |
| docker pull ghcr.io/anatolykoptev/moonshine-whisper:${TAG} | |
| \`\`\`" | |
| if gh release view "$TAG" --repo ${{ github.repository }} &>/dev/null; then | |
| gh release edit "$TAG" --repo ${{ github.repository }} --notes "$NOTES" | |
| else | |
| gh release create "$TAG" --repo ${{ github.repository }} --title "moonshine-whisper ${TAG}" --notes "$NOTES" | |
| fi |