-
Notifications
You must be signed in to change notification settings - Fork 1
67 lines (47 loc) · 1.66 KB
/
dotnetcore.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: AutoStep Build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Fetch tags for GitVersion
run: git fetch --tags
- name: Fetch master for GitVersion
if: github.ref != 'refs/heads/master'
run: git branch --create-reflog master origin/master
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.100
- name: GitVersion
id: gitversion # step id used as reference for output values
uses: roryprimrose/[email protected]
- name: Build with dotnet
run: dotnet build --configuration Release
- name: Run tests
run: dotnet test --configuration Release --no-build
- name: Pack
run: dotnet pack ./src/AutoStep/AutoStep.csproj --no-build -o artifacts -c Release --version-suffix ${{ steps.gitversion.outputs.PreReleaseTag }}
- name: Push
run: dotnet nuget push artifacts/* -s https://f.feedz.io/autostep/ci/nuget/index.json -k ${{ secrets.FEEDZ_IO_KEY }}
build-docs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- name: Install Docfx
uses: crazy-max/[email protected]
with:
# Arguments to pass to Chocolatey
args: install docfx -y
- name: Build Metadata
working-directory: docs
run: docfx metadata
- name: Build Docs
working-directory: docs
run: docfx build
- name: Store Docs
uses: actions/upload-artifact@v1
with:
name: docs
path: docs/_site