Skip to content

Update embedding test #146

Update embedding test

Update embedding test #146

name: Build-Release-Publish
on:
push:
branches:
- main
- release/atcoder
tags:
- "v[0-9]+.[0-9]+.[0-9]+*"
env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_NOLOGO: true
NUGET_XMLDOC_MODE: skip
WORKFLOW_BUILD_SLN: ac-library-csharp.sln
jobs:
get-version:
uses: kzrnm/dotnet-actions/.github/workflows/get-version.yml@v2
with:
project-path: Directory.Build.props
format:
uses: kzrnm/dotnet-actions/.github/workflows/format.yml@v2
with:
target: ac-library-csharp.sln
dotnet-version: |
3.0.x
3.1.x
7.0.x
test:
uses: kzrnm/dotnet-actions/.github/workflows/unittest.yml@v2
with:
target: ac-library-csharp.sln
test-logger: GitHubActions
dotnet-version: |
3.0.x
3.1.x
7.0.x
build-verify:
needs: get-version
uses: ./.github/workflows/reusable_verify.yml
with:
upload-artifact: ${{ fromJson(needs.get-version.outputs.is-new) }}
publish:
needs: [get-version, test, format, build-verify]
if: ${{ needs.get-version.outputs.is-new == 'true' }}
uses: kzrnm/dotnet-actions/.github/workflows/publish.yml@v2
with:
artifact-name: dist
version: ${{ needs.get-version.outputs.version }}
is-prerelease: ${{ fromJson(needs.get-version.outputs.is-prerelease) }}
secrets:
NUGET_KEY: ${{ secrets.NUGET_KEY }}