-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (37 loc) · 1.09 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
name: CI
on:
push:
branches: [ '*' ]
pull_request:
jobs:
CI:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Needed in order for tags to be available so prereleases autoincrement the version
- name: Build and test
run: ./build.ps1
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Publish to MyGet
if: github.ref == 'refs/heads/main'
run: dotnet nuget push artifacts\Packages\AmbientTasks.*.nupkg --source https://www.myget.org/F/ambienttasks/api/v3/index.json --api-key ${{ secrets.MYGET_API_KEY }}
- name: Upload packages artifact
if: always()
uses: actions/upload-artifact@v2
with:
name: Packages
path: artifacts/Packages
- name: Upload test results artifact
if: always()
uses: actions/upload-artifact@v2
with:
name: Test results
path: artifacts/Test results
- name: Upload logs artifact
if: always()
uses: actions/upload-artifact@v2
with:
name: Logs
path: artifacts/Logs