Skip to content
This repository was archived by the owner on Jul 9, 2023. It is now read-only.

Commit 41c9290

Browse files
committed
Use GitHub actions (Remove AppVeyor)
1 parent d413344 commit 41c9290

22 files changed

+67
-651
lines changed

.build/build.ps1

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

.build/cleanup-cache.txt

Lines changed: 0 additions & 1 deletion
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.
File renamed without changes.

.build/install-certificate.ps1 renamed to .github/install-unit-test-certificate.ps1

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
$Here = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
2-
3-
$pfx = new-object System.Security.Cryptography.X509Certificates.X509Certificate2
42
$certPath = "$Here\lib\rootCert.pfx"
5-
$pfxPass = ""
6-
$pfx.import($certPath,$pfxPass,"Exportable,PersistKeySet")
3+
$pfx = New-Object -TypeName System.Security.Cryptography.X509Certificates.X509Certificate2($certPath,"","Exportable,PersistKeySet")
74
$store = new-object System.Security.Cryptography.X509Certificates.X509Store([System.Security.Cryptography.X509Certificates.StoreName]::Root, "localmachine")
85
$store.open("MaxAllowed")
96
$store.add($pfx)
File renamed without changes.

.github/workflows/dotnetcore.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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+
steps:
19+
- uses: actions/checkout@v2
20+
- name: Install DocFX
21+
run: choco install docfx -y
22+
- name: Build
23+
run: dotnet build src/Titanium.Web.Proxy/Titanium.Web.Proxy.csproj
24+
- name: Test
25+
shell: pwsh
26+
run: |
27+
.\.github\install-unit-test-certificate.ps1
28+
dotnet test tests/Titanium.Web.Proxy.UnitTests/Titanium.Web.Proxy.UnitTests.csproj
29+
dotnet test tests/Titanium.Web.Proxy.IntegrationTests/Titanium.Web.Proxy.IntegrationTests.csproj
30+
- name: Update Documentation
31+
if: github.ref == 'refs/heads/develop'
32+
run: docfx .github/docfx.json
33+
- name: Publish Documentation
34+
if: github.ref == 'refs/heads/develop'
35+
uses: EndBug/add-and-commit@v9
36+
with:
37+
default_author: github_actions
38+
message: Update documentation
39+
committer_name: GitHub Actions
40+
committer_email: [email protected]
41+
- name: Publish Beta
42+
if: github.ref == 'refs/heads/beta'
43+
run: |
44+
dotnet pack src/Titanium.Web.Proxy/Titanium.Web.Proxy.csproj --version-suffix "beta"
45+
dotnet nuget push **\*.nupkg -s "nuget" -k "${{ secrets.NUGET_TOKEN }}"
46+
- name: Publish Stable
47+
if: github.ref == 'refs/heads/stable'
48+
run: |
49+
dotnet pack src/Titanium.Web.Proxy/Titanium.Web.Proxy.csproj
50+
dotnet nuget push **\*.nupkg -s "nuget" -k "${{ secrets.NUGET_TOKEN }}"

.nuget/NuGet.Config

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

.nuget/NuGet.exe

-4.38 MB
Binary file not shown.

0 commit comments

Comments
 (0)