forked from allure-framework/allure-csharp
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (42 loc) · 1.22 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
name: Publish
on:
push:
jobs:
build-and-publish:
name: Build and Publish
runs-on: ubuntu-latest
timeout-minutes: 15
env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: |
3.1.*
5.0.*
6.0.*
env:
NUGET_AUTH_TOKEN: ${{ secrets.PACKAGES_TOKEN }}
- name: Cache Nuget package dependencies
uses: actions/cache@v2
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
- name: Build Nuget packages
run: dotnet build Allure.Commons/ --configuration Release
- name: Pack Nuget packages
run: >
dotnet pack Allure.Commons/
--no-build
--configuration Release
--output output/packages
- name: Publish Nuget packages
run: >
dotnet nuget push output/packages/*.nupkg
--source "https://nuget.pkg.github.com/dodopizza/index.json"
--api-key ${{ secrets.GITHUB_TOKEN }}
--skip-duplicate