Add symbols to package #35
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: NuGet package CI/CD | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
types: [closed] | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
permissions: | |
id-token: write | |
contents: read | |
name: Update NuGet package | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v1 | |
- name: Setup .NET 6 | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 6.0.x | |
- name: Build solution and generate NuGet package | |
run: dotnet build -c Release | |
- name: Unit test | |
run: dotnet test --no-build -c Release KpiSchedule.Common.UnitTests | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@master | |
with: | |
role-to-assume: arn:aws:iam::251999958052:role/kpi-schedule-github-actions-role | |
aws-region: eu-central-1 | |
- name: Integration test | |
run: dotnet test --no-build -c Release KpiSchedule.Common.IntegrationTests | |
- name: Push generated package to NuGet.org | |
run: dotnet nuget push ./KpiSchedule.Common/bin/Release/*.nupkg --skip-duplicate -k ${{ secrets.NUGET_API_KEY }} -s ${{ secrets.NUGET_URL }} |