Deploy configuration

This commit is contained in:
Timofey Gelazoniya 2023-10-05 21:34:34 +03:00
parent b06969d528
commit 2895fcbbd3
Signed by: zeldon
GPG Key ID: 047886915281DD2A
4 changed files with 45 additions and 2 deletions

28
.github/workflows/release.yml vendored Normal file
View File

@ -0,0 +1,28 @@
name: goreleaser
on:
push:
tags:
- "*"
permissions:
contents: write
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: git fetch --force --tags
- uses: actions/setup-go@v4
with:
go-version: stable
- uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: ${{ env.GITHUB_REF_NAME }}
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.PUBLISHER_TOKEN }}

3
.gitignore vendored
View File

@ -4,4 +4,5 @@ ggml-medium.bin
whisper-api-server.exe
tmp/*
!tmp/.gitkeep
!tmp/.gitkeep
dist/

14
.goreleaser.yaml Normal file
View File

@ -0,0 +1,14 @@
builds:
- binary: whisper-api-server
goos:
- windows
goarch:
- amd64
env:
- CGO_ENABLED=1
release:
prerelease: auto
checksum:
name_template: "checksum.txt"

View File

@ -33,7 +33,7 @@ Receive a response in JSON format:
- [x] Implement automatic model downloading from [huggingface](https://huggingface.co/ggerganov/whisper.cpp/tree/main)
- [x] Implement automatic `Whisper.dll` downloading from [Guthub releases](https://github.com/Const-me/Whisper/releases)
- [ ] Provide prebuilt binaries for Windows
- [x] Provide prebuilt binaries for Windows
- [ ] Include instructions for running on Linux with Wine (likely possible).
# Credits