mirror of
https://github.com/ditkrg/DIT.Workflower.git
synced 2026-01-22 22:06:42 +00:00
Bumps [actions/setup-dotnet](https://github.com/actions/setup-dotnet) from 2 to 3. - [Release notes](https://github.com/actions/setup-dotnet/releases) - [Commits](https://github.com/actions/setup-dotnet/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/setup-dotnet dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
42 lines
907 B
YAML
42 lines
907 B
YAML
name: Deploy To Nuget
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "[0-9]+.[0-9]+.[0-9]"
|
|
paths-ignore:
|
|
- "**.md"
|
|
- ".vscode/**"
|
|
|
|
concurrency:
|
|
group: deploy-${{ github.ref_name }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
test:
|
|
uses: ./.github/workflows/tests-base.yaml
|
|
|
|
build-push:
|
|
name: Build and Publish
|
|
needs: [test]
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-dotnet@v3
|
|
with:
|
|
dotnet-version: "6.0.x"
|
|
|
|
- name: Restore packages
|
|
run: dotnet restore
|
|
|
|
- name: Create Pack
|
|
run: dotnet pack --no-restore -o packages /p:PackageVersion=${{ github.ref_name }}
|
|
|
|
- name: Publish to Nuget
|
|
run: |-
|
|
dotnet nuget push "packages/*.nupkg" \
|
|
--skip-duplicate \
|
|
--api-key ${{ secrets.NUGET__API_KEY }} \
|
|
--source https://api.nuget.org/v3/index.json
|