-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (45 loc) · 1.24 KB
/
pullstream-workflow.yml
File metadata and controls
51 lines (45 loc) · 1.24 KB
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: PullStream workflow
on:
push:
branches: [ pullstream ]
pull_request:
branches: [ pullstream ]
defaults:
run:
working-directory: ./src
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
jobs:
test-pullstream:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.103
- name: Test
run: dotnet test --configuration Debug --verbosity normal PullStream.Tests
publish-pullstream:
runs-on: ubuntu-latest
needs: test-pullstream
if: ${{ github.event_name == 'push' }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.103
- name: Publish on version change
id: publish_nuget
uses: rohith/publish-nuget@v2
with:
PROJECT_FILE_PATH: ./src/PullStream/PullStream.csproj
VERSION_REGEX: ^\s*<Version>(.*)<\/Version>\s*$
TAG_COMMIT: true
TAG_FORMAT: pullstream-v*
NUGET_KEY: ${{secrets.NUGETKEY}}
NUGET_SOURCE: https://api.nuget.org
INCLUDE_SYMBOLS: true