-
Notifications
You must be signed in to change notification settings - Fork 2
55 lines (43 loc) · 1.42 KB
/
ci.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
env:
BUILD_CONFIG: Release
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
7.0.x
8.0.x
- name: Clean
run: dotnet clean ./src/saml2.authentication/saml2.authentication.csproj -c $BUILD_CONFIG && dotnet nuget locals all --clear
- name: Install Dependencies
run: dotnet restore
- name: Build
run: dotnet build ./src/saml2.authentication/saml2.authentication.csproj -c $BUILD_CONFIG
- name: Pack
run: dotnet pack ./src/saml2.authentication/saml2.authentication.csproj -c $BUILD_CONFIG --no-build --include-source --include-symbols -o ./artifacts
#- name: Setup nuget
# uses: NuGet/setup-nuget@v1
# with:
# nuget-version: latest
#- name: Push to GPR
# env:
# GITHUB_NUGET_URL: https://nuget.pkg.github.com/dina-heidar/index.json
# GITHUB_NUGET_API_KEY: ${{ secrets.GITHUB_TOKEN }}
# run: dotnet nuget push ./artifacts/saml2.authentication.*.nupkg -k $GITHUB_NUGET_API_KEY -s $GITHUB_NUGET_URL --skip-duplicate