Fix a typo for Go (#298)

This commit is contained in:
Fangjun Kuang
2023-09-07 11:29:00 +08:00
committed by GitHub
parent a0a747a0c0
commit ffeff3b8a3
14 changed files with 33 additions and 145 deletions

View File

@@ -11,6 +11,8 @@ on:
- 'sherpa-onnx/csrc/*'
- 'sherpa-onnx/jni/*'
- 'build-android*.sh'
tags:
- '*'
pull_request:
branches:
- master
@@ -22,10 +24,6 @@ on:
- 'sherpa-onnx/jni/*'
- 'build-android*.sh'
release:
types:
- published
workflow_dispatch:
inputs:
release:
@@ -112,7 +110,7 @@ jobs:
# https://huggingface.co/docs/hub/spaces-github-actions
- name: Publish to huggingface
if: github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa' && env.RELEASE == 'true'
if: github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa' && github.event_name == 'push' && contains(github.ref, 'refs/tags/')
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
@@ -136,7 +134,7 @@ jobs:
git push https://csukuangfj:$HF_TOKEN@huggingface.co/csukuangfj/sherpa-onnx-libs main
- name: Release android libs
if: env.RELEASE == 'true'
if: github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa' && github.event_name == 'push' && contains(github.ref, 'refs/tags/')
uses: svenstaro/upload-release-action@v2
with:
file_glob: true