build: bump .NET SDK version to 8.0.403 #204
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
branches: [ master ] | |
tags: [ v*.*.* ] | |
paths-ignore: | |
- '**.md' | |
env: | |
DOTNET_NOLOGO: true | |
DOTNET_CLI_TELEMETRY_OPTOUT: true | |
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | |
jobs: | |
build-artifacts: | |
strategy: | |
matrix: | |
project: | |
- VMelnalksnis.NordigenDotNet | |
- VMelnalksnis.NordigenDotNet.DependencyInjection | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/[email protected] | |
- name: Publish project | |
id: publish | |
run: > | |
deployment/publish.sh | |
"${{ matrix.project }}" | |
"${{ github.run_number }}" | |
- name: Upload artifact | |
uses: actions/[email protected] | |
with: | |
name: ${{ steps.publish.outputs.artifact-name }} | |
path: ${{ steps.publish.outputs.artifact }} | |
- name: Upload artifact | |
uses: actions/[email protected] | |
with: | |
name: ${{ steps.publish.outputs.symbols-name }} | |
path: ${{ steps.publish.outputs.symbols }} | |
create-release: | |
name: Create release | |
needs: build-artifacts | |
runs-on: ubuntu-latest | |
if: startsWith(github.ref, 'refs/tags/') | |
steps: | |
- uses: actions/[email protected] | |
id: download | |
with: | |
path: artifacts | |
- name: Create release | |
uses: softprops/[email protected] | |
with: | |
draft: true | |
prerelease: false | |
tag_name: ${{ github.ref_name }} | |
generate_release_notes: true | |
fail_on_unmatched_files: true | |
files: | | |
${{ steps.download.outputs.download-path }}/**/*.nupkg | |
- name: NuGet Push | |
run: dotnet nuget push "**/*.nupkg" --api-key ${{ secrets.NUGET_KEY }} --source https://api.nuget.org/v3/index.json | |
working-directory: ${{ steps.download.outputs.download-path }} | |
- name: NuGet Push Symboles | |
run: dotnet nuget push "**/*.snupkg" --api-key ${{ secrets.NUGET_KEY }} --source https://api.nuget.org/v3/index.json | |
working-directory: ${{ steps.download.outputs.download-path }} |