-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (34 loc) · 976 Bytes
/
ci.yml
File metadata and controls
43 lines (34 loc) · 976 Bytes
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
name: CI
on:
push:
branches:
- master
- v4.1.3
pull_request:
branches:
- master
- v4.1.3
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Add AutoMapper Myget Source
run: dotnet nuget add source https://www.myget.org/F/automapperdev/api/v3/index.json -n automappermyget
- name: Restore
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --no-restore --verbosity normal
- name: Pack and push
env:
PROJECT_NAME: AutoMapper.Extensions.ExpressionMapping
DEPLOY_PACKAGE_URL: https://nuget.api.1stbet.com/v3/index.json
DEPLOY_PACKAGE_API_KEY: ${{ secrets.NUGET_API_KEY }}
REPO: ${{ github.repository }}
REPO_OWNER: ${{ github.repository_owner }}
run: ./Pack_Push.ps1
shell: pwsh