44dafca9f7
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3.1.0 to 3.1.1. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v3.1.0...v3.1.1) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
76 lines
2.1 KiB
YAML
76 lines
2.1 KiB
YAML
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/checkout@v3.1.0
|
|
- uses: actions/setup-dotnet@v3.0.2
|
|
|
|
- name: Publish project
|
|
id: publish
|
|
run: >
|
|
deployment/publish.sh
|
|
"${{ matrix.project }}"
|
|
"${{ github.run_number }}"
|
|
|
|
- name: Upload artifact
|
|
uses: actions/upload-artifact@v3.1.1
|
|
with:
|
|
name: ${{ steps.publish.outputs.artifact-name }}
|
|
path: ${{ steps.publish.outputs.artifact }}
|
|
|
|
- name: Upload artifact
|
|
uses: actions/upload-artifact@v3.1.1
|
|
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/download-artifact@v3.0.1
|
|
id: download
|
|
with:
|
|
path: artifacts
|
|
|
|
- name: Create release
|
|
uses: softprops/action-gh-release@v0.1.14
|
|
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 }}
|