NuGet refactor #12
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: CD-GitHub | |
on: | |
push: | |
tags: | |
- '[0-9]+.[0-9]+.[0-9]+-dev-[0-9]+' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Install .NET | |
uses: actions/[email protected] | |
with: | |
dotnet-version: 8.0.x | |
source-url: https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json | |
env: | |
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
- name: Pack | |
run: | | |
dotnet nuget update source PackSite --configfile ./src/NuGet.config -u ${{ secrets.GPR_OWNER }} -p ${{secrets.GPR_TOKEN }} --store-password-in-clear-text | |
dotnet pack src/PackSite.Library.Pipelining.sln --configuration Release | |
- name: Deploy to GitHub Package Registry | |
run: | | |
dotnet nuget push src/PackSite.Library.Pipelining/bin/Release/*.nupkg -k ${{ secrets.GITHUB_TOKEN }} | |
dotnet nuget push src/PackSite.Library.Pipelining.Abstractions/bin/Release/*.nupkg -k ${{ secrets.GITHUB_TOKEN }} | |
dotnet nuget push src/PackSite.Library.Pipelining.Configuration/bin/Release/*.nupkg -k ${{ secrets.GITHUB_TOKEN }} |