-
-
Notifications
You must be signed in to change notification settings - Fork 2
31 lines (23 loc) · 1.13 KB
/
cd.yml
File metadata and controls
31 lines (23 loc) · 1.13 KB
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
name: Continuous Delivery
on:
release:
types: [published]
jobs:
Publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.x'
- name: Build and Pack
run: |
TAG=$(echo $GITHUB_REF | cut -c 11-)
dotnet build src/Moschen.AwsLambdaAuthenticationHandler/Moschen.AwsLambdaAuthenticationHandler.csproj -c Release -p:Version=$TAG
dotnet pack src/Moschen.AwsLambdaAuthenticationHandler/Moschen.AwsLambdaAuthenticationHandler.csproj -c Release -o ./ --no-build -p:PackageVersion=$TAG
dotnet build src/Moschen.AwsLambdaAuthenticationHandler.Jwt/Moschen.AwsLambdaAuthenticationHandler.Jwt.csproj -c Release -p:Version=$TAG
dotnet pack src/Moschen.AwsLambdaAuthenticationHandler.Jwt/Moschen.AwsLambdaAuthenticationHandler.Jwt.csproj -c Release -o ./ --no-build -p:PackageVersion=$TAG
- name: Publish the package to nuget.org
run: dotnet nuget push *.nupkg -k $NUGET_AUTH_TOKEN -s https://api.nuget.org/v3/index.json
env:
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_KEY }}