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

@@ -6,20 +6,8 @@ on:
- dot-net
tags:
- '*'
release:
types:
- published
workflow_dispatch:
inputs:
release:
description: "Whether to release"
type: boolean
env:
RELEASE:
|- # Release if there is a release tag name or a release flag in workflow_dispatch
${{ github.event.release.tag_name != '' || github.event.inputs.release == 'true' }}
concurrency:
group: dot-net-${{ github.ref }}
@@ -138,7 +126,7 @@ jobs:
path: scripts/dotnet/packages/*.nupkg
- name: publish .Net packages to nuget.org
if: github.repository == 'csukuangfj/sherpa-onnx' || github.repository == 'k2-fsa/sherpa-onnx'
if: github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa' && github.event_name == 'push' && contains(github.ref, 'refs/tags/')
shell: bash
env:
API_KEY: ${{ secrets.NUGET_API_KEY }}
@@ -148,7 +136,7 @@ jobs:
dotnet nuget push ./org.k2fsa.sherpa.onnx.*.nupkg --skip-duplicate --api-key $API_KEY --source https://api.nuget.org/v3/index.json
- name: Release nuget packages
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