Skip to content

Commit 3726020

Browse files
committed
Use GitHub actions instead of AppVeyor
1 parent 07c1775 commit 3726020

File tree

9 files changed

+62
-333
lines changed

9 files changed

+62
-333
lines changed

.build/build.ps1

Lines changed: 0 additions & 125 deletions
This file was deleted.

.build/lib/Newtonsoft.Json.dll

-647 KB
Binary file not shown.

.build/setup.ps1

Lines changed: 0 additions & 81 deletions
This file was deleted.

.github/workflows/dotnetcore.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: .NET Core
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
- beta
8+
- stable
9+
pull_request:
10+
branches:
11+
- develop
12+
- beta
13+
- stable
14+
15+
jobs:
16+
build:
17+
runs-on: windows-latest
18+
env:
19+
NUGET_TOKEN: ${{ secrets.NUGET_TOKEN }}
20+
steps:
21+
- uses: actions/checkout@v2
22+
- name: Setup .NET Core
23+
uses: actions/setup-dotnet@v1
24+
with:
25+
dotnet-version: '6.0.x'
26+
- name: Install DocFX
27+
run: choco install docfx -y
28+
- name: Build
29+
run: |
30+
dotnet build src/Advanced.Algorithms.sln
31+
- name: Test
32+
run: |
33+
dotnet test src/Advanced.Algorithms.sln
34+
- name: Document
35+
if: github.ref == 'refs/heads/develop'
36+
run: |
37+
docfx .build/docfx.json
38+
- name: Update Documentation
39+
if: github.ref == 'refs/heads/develop'
40+
uses: EndBug/add-and-commit@v9
41+
with:
42+
default_author: github_actions
43+
message: Update documentation
44+
committer_name: GitHub Actions
45+
committer_email: [email protected]
46+
- name: Public Beta
47+
if: github.ref == 'refs/heads/beta'
48+
run: |
49+
dotnet pack src/Advanced.Algorithms/Advanced.Algorithms.csproj --version-suffix "beta"
50+
dotnet nuget push **\*.nupkg -s "nuget" -k $NUGET_TOKEN
51+
- name: Publish Stable
52+
if: github.ref == 'refs/heads/stable'
53+
run: |
54+
dotnet pack src/Advanced.Algorithms/Advanced.Algorithms.csproj
55+
dotnet nuget push **\*.nupkg -s "nuget" -k $NUGET_TOKEN

NuGet.config

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<configuration>
3+
<packageSources>
4+
<add key="nuget" value="https://api.nuget.org/v3/index.json" />
5+
</packageSources>
6+
</configuration>

appveyor.yml

Lines changed: 0 additions & 74 deletions
This file was deleted.

src/Advanced.Algorithms/Advanced.Algorithms.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<DelaySign>False</DelaySign>
1010
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
1111
<LangVersion>latest</LangVersion>
12+
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
1213
</PropertyGroup>
1314

1415
<ItemGroup>

src/Advanced.Algorithms/Advanced.Algorithms.csproj.DotSettings

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)