-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (27 loc) · 1.16 KB
/
CD-GitHub.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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/checkout@v4
- name: Install .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.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 }} --skip-duplicate
dotnet nuget push src/PackSite.Library.Pipelining.Abstractions/bin/Release/*.nupkg -k ${{ secrets.GITHUB_TOKEN }} --skip-duplicate
dotnet nuget push src/PackSite.Library.Pipelining.Configuration/bin/Release/*.nupkg -k ${{ secrets.GITHUB_TOKEN }} --skip-duplicate