Skip to content

Commit dc4e526

Browse files
committed
Adding a github actions build
1 parent 35681e8 commit dc4e526

File tree

31 files changed

+65
-402
lines changed

31 files changed

+65
-402
lines changed

.github/workflows/build.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Build
2+
on: [push, pull_request]
3+
env:
4+
DOTNET_CLI_TELEMETRY_OPTOUT: 1
5+
jobs:
6+
build:
7+
runs-on: windows-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v1
11+
with:
12+
fetch-depth: 0
13+
- name: Setup .NET Core
14+
uses: actions/setup-dotnet@v1
15+
with:
16+
dotnet-version: 3.1.100
17+
- name: Build Reason
18+
run: "echo ref: ${{github.ref}} event: ${{github.event_name}}"
19+
- name: Build Version
20+
id: version
21+
uses: thefringeninja/[email protected]
22+
with:
23+
tag-prefix: v
24+
- name: Build
25+
run: dotnet build --configuration Release
26+
- name: Run Tests
27+
run: dotnet test --configuration Release --results-directory artifacts --no-build --logger:trx
28+
- name: Package
29+
if: github.event_name != 'pull_request'
30+
run: dotnet pack --configuration Release --no-build
31+
- name: Publish CI Packages
32+
run: |
33+
for package in $(find -name "*.nupkg" | grep "minver" -v); do
34+
echo "${0##*/}": Pushing $package...
35+
36+
# GPR
37+
# workaround for GPR push issue
38+
curl -sX PUT -u "foundatiofx:${{ secrets.GITHUB_TOKEN }}" -F package=@$package https://nuget.pkg.github.com/foundatiofx/
39+
40+
# feedz (remove once GPR supports anonymous access)
41+
dotnet nuget push $package --source https://f.feedz.io/foundatio/foundatio/nuget --api-key ${{ secrets.FEEDZ_KEY }}
42+
done
43+
- name: Publish Release Packages
44+
if: startsWith(github.ref, 'refs/tags/v')
45+
run: |
46+
for package in $(find -name "*.nupkg" | grep "minver" -v); do
47+
echo "${0##*/}": Pushing $package...
48+
dotnet nuget push $package --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_KEY }}
49+
done
50+
- name: Upload Artifacts
51+
uses: actions/[email protected]
52+
with:
53+
name: artifacts
54+
path: artifacts

appveyor.yml

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

build/Build.ps1

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

build/DisplayEnvironmentInfo.ps1

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

build/Package.ps1

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

build/Set-BuildVersion.ps1

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

build/Settings.ps1

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

build/sourcelink.props

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

build/version.props

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

src/Exceptionless.Portable.Signed/Exceptionless.Portable.Signed.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@
2222
<Pack>true</Pack>
2323
</None>
2424
</ItemGroup>
25-
26-
<ItemGroup Label="Build">
27-
<Compile Include="..\GlobalAssemblyInfo.cs" Exclude="bin\**;obj\**;**\*.xproj;packages\**" />
28-
</ItemGroup>
2925

3026
<ItemGroup>
3127
<ProjectReference Include="..\Exceptionless.Signed\Exceptionless.Signed.csproj" />

0 commit comments

Comments
 (0)