This repository has been archived by the owner on Jul 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 629
58 lines (49 loc) · 1.61 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
name: .NET Core
on:
push:
branches:
- develop
- beta
- stable
pull_request:
branches:
- develop
- beta
- stable
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Install DocFX
if: github.ref == 'refs/heads/develop'
run: choco install docfx -y
- name: Build
run: dotnet build src/Titanium.Web.Proxy/Titanium.Web.Proxy.csproj
- name: Test
shell: pwsh
run: |
.\.github\install-unit-test-certificate.ps1
dotnet test tests/Titanium.Web.Proxy.UnitTests/Titanium.Web.Proxy.UnitTests.csproj
dotnet test tests/Titanium.Web.Proxy.IntegrationTests/Titanium.Web.Proxy.IntegrationTests.csproj
- name: Update Documentation
if: github.ref == 'refs/heads/develop'
run: docfx .github/docfx.json
- name: Publish Documentation
if: github.ref == 'refs/heads/develop'
uses: EndBug/add-and-commit@v9
with:
default_author: github_actions
message: Update documentation
committer_name: GitHub Actions
committer_email: [email protected]
- name: Publish Beta
if: github.ref == 'refs/heads/beta'
run: |
dotnet pack src/Titanium.Web.Proxy/Titanium.Web.Proxy.csproj --version-suffix "beta"
dotnet nuget push **\*.nupkg -s "nuget" -k "${{ secrets.NUGET_TOKEN }}"
- name: Publish Stable
if: github.ref == 'refs/heads/stable'
run: |
dotnet pack src/Titanium.Web.Proxy/Titanium.Web.Proxy.csproj
dotnet nuget push **\*.nupkg -s "nuget" -k "${{ secrets.NUGET_TOKEN }}"