Workflow file for this run
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: SOFTURE COMMON LOGGING - RELEASE NEW VERSION TO NUGET.ORG | |
on: | |
release: | |
types: [released] | |
jobs: | |
publishing: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: ⚙️ Install dotnet | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 9.0.100 | |
- name: 🔗 Restore dependencies | |
run: dotnet restore ./API | |
- name: 📂 Create new nuget package | |
run: dotnet pack --no-restore -c Release -o ./artifacts /p:PackageVersion=${{ github.ref_name }} /p:Version=${{ github.ref_name }} ./API/SOFTURE.Common.Logging/SOFTURE.Common.Logging.csproj | |
continue-on-error: false | |
- name: 🚀 Push new nuget package | |
run: dotnet nuget push ./artifacts/SOFTURE.Common.Logging.${{ github.ref_name }}.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json |