-
Notifications
You must be signed in to change notification settings - Fork 3
37 lines (29 loc) · 873 Bytes
/
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
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
run: ./build.ps1
- name: Publish to MyGet
if: github.ref == 'refs/heads/main'
run: dotnet nuget push artifacts\Packages\Techsola.InstantReplay.*.nupkg --source https://www.myget.org/F/techsola/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 logs artifact
if: always()
uses: actions/upload-artifact@v2
with:
name: Logs
path: artifacts/Logs