Skip to content

Commit 0952821

Browse files
committed
Update build
1 parent 07d0d23 commit 0952821

File tree

9 files changed

+117
-389
lines changed

9 files changed

+117
-389
lines changed

.dockerignore

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

.github/workflows/build.yml

Lines changed: 43 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,54 @@
11
name: Build
2-
3-
on: [push]
4-
2+
on: [push, pull_request]
3+
env:
4+
DOTNET_CLI_TELEMETRY_OPTOUT: 1
55
jobs:
66
build:
7-
87
runs-on: ubuntu-latest
9-
108
steps:
11-
- uses: actions/checkout@v1
9+
- name: Checkout
10+
uses: actions/checkout@v1
11+
with:
12+
fetch-depth: 0
1213
- name: Setup .NET Core
1314
uses: actions/setup-dotnet@v1
1415
with:
15-
dotnet-version: 2.2.207
16-
- name: Test
17-
run: dotnet test --results-directory ./artifacts --logger:trx
18-
- name: Pack
19-
run: dotnet pack -c Release -o ./artifacts
20-
- name: Artifacts
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
2151
uses: actions/[email protected]
2252
with:
2353
name: artifacts
24-
path: ./artifacts
54+
path: artifacts

.gitignore

Lines changed: 25 additions & 155 deletions
Original file line numberDiff line numberDiff line change
@@ -1,86 +1,15 @@
1-
## Ignore Visual Studio temporary files, build results, and
2-
## files generated by popular Visual Studio add-ons.
3-
41
# User-specific files
52
*.suo
63
*.user
7-
*.sln.docstates
8-
9-
.vs
10-
*.lock.json
114

125
# Build results
13-
[Dd]ebug/
14-
[Dd]ebugPublic/
15-
[Rr]elease/
16-
[Rr]eleases/
17-
x64/
18-
x86/
196
[Bb]in/
207
[Oo]bj/
21-
22-
# Roslyn cache directories
23-
*.ide/
8+
artifacts
9+
.vs/
2410

2511
# MSTest test Results
2612
[Tt]est[Rr]esult*/
27-
[Bb]uild[Ll]og.*
28-
29-
#NUNIT
30-
*.VisualState.xml
31-
TestResult.xml
32-
33-
# Build Results of an ATL Project
34-
[Dd]ebugPS/
35-
[Rr]eleasePS/
36-
dlldata.c
37-
38-
*_i.c
39-
*_p.c
40-
*_i.h
41-
*.ilk
42-
*.meta
43-
*.obj
44-
*.pch
45-
*.pdb
46-
*.pgc
47-
*.pgd
48-
*.rsp
49-
*.sbr
50-
*.tlb
51-
*.tli
52-
*.tlh
53-
*.tmp
54-
*.tmp_proj
55-
*.log
56-
*.vspscc
57-
*.vssscc
58-
.builds
59-
*.pidb
60-
*.svclog
61-
*.scc
62-
63-
# Chutzpah Test files
64-
_Chutzpah*
65-
66-
# Visual C++ cache files
67-
ipch/
68-
*.aps
69-
*.ncb
70-
*.opensdf
71-
*.sdf
72-
*.cachefile
73-
74-
# Visual Studio profiler
75-
*.psess
76-
*.vsp
77-
*.vspx
78-
79-
# TFS 2012 Local Workspace
80-
$tf/
81-
82-
# Guidance Automation Toolkit
83-
*.gpState
8413

8514
# ReSharper is a .NET coding add-in
8615
_ReSharper*/
@@ -90,95 +19,36 @@ _ReSharper*/
9019
# JustCode is a .NET coding addin-in
9120
.JustCode
9221

93-
# TeamCity is a build add-in
94-
_TeamCity*
95-
9622
# DotCover is a Code Coverage Tool
9723
*.dotCover
9824

9925
# NCrunch
10026
_NCrunch_*
10127
.*crunch*.local.xml
10228

103-
# MightyMoose
104-
*.mm.*
105-
AutoTest.Net/
106-
107-
# Web workbench (sass)
108-
.sass-cache/
109-
110-
# Installshield output folder
111-
[Ee]xpress/
112-
113-
# DocProject is a documentation generator add-in
114-
DocProject/buildhelp/
115-
DocProject/Help/*.HxT
116-
DocProject/Help/*.HxC
117-
DocProject/Help/*.hhc
118-
DocProject/Help/*.hhk
119-
DocProject/Help/*.hhp
120-
DocProject/Help/Html2
121-
DocProject/Help/html
122-
123-
# Click-Once directory
124-
publish/
125-
126-
# Publish Web Output
127-
*.[Pp]ublish.xml
128-
*.azurePubxml
129-
# TODO: Comment the next line if you want to checkin your web deploy settings
130-
# but database connection strings (with potential passwords) will be unencrypted
131-
*.pubxml
132-
*.publishproj
133-
13429
# NuGet Packages
13530
*.nupkg
136-
# The packages folder can be ignored because of Package Restore
137-
**/packages/*
138-
# except build/, which is used as an MSBuild target.
139-
!**/packages/build/
140-
# If using the old MSBuild-Integrated Package Restore, uncomment this:
141-
#!**/packages/repositories.config
142-
143-
# Windows Azure Build Output
144-
csx/
145-
*.build.csdef
146-
147-
# Windows Store app package directory
148-
AppPackages/
149-
150-
# Others
151-
sql/
152-
*.Cache
153-
ClientBin/
154-
[Ss]tyle[Cc]op.*
155-
~$*
156-
*~
157-
*.dbmdl
158-
*.dbproj.schemaview
159-
*.pfx
160-
*.publishsettings
161-
node_modules/
162-
163-
# RIA/Silverlight projects
164-
Generated_Code/
165-
166-
# Backup & report files from converting an old project file
167-
# to a newer Visual Studio version. Backup files are not needed,
168-
# because we have git ;-)
169-
_UpgradeReport_Files/
170-
Backup*/
171-
UpgradeLog*.XML
172-
UpgradeLog*.htm
173-
174-
# SQL Server files
175-
*.mdf
176-
*.ldf
177-
178-
# Business Intelligence projects
179-
*.rdl.data
180-
*.bim.layout
181-
*.bim_*.settings
18231

183-
# Microsoft Fakes
184-
FakesAssemblies/
32+
.DS_Store
33+
34+
# Rider
35+
36+
# User specific
37+
**/.idea/**/workspace.xml
38+
**/.idea/**/tasks.xml
39+
**/.idea/shelf/*
40+
**/.idea/dictionaries
41+
42+
# Sensitive or high-churn files
43+
**/.idea/**/dataSources/
44+
**/.idea/**/dataSources.ids
45+
**/.idea/**/dataSources.xml
46+
**/.idea/**/dataSources.local.xml
47+
**/.idea/**/sqlDataSources.xml
48+
**/.idea/**/dynamic.xml
49+
50+
# Rider
51+
# Rider auto-generates .iml files, and contentModel.xml
52+
**/.idea/**/*.iml
53+
**/.idea/**/contentModel.xml
54+
**/.idea/**/modules.xml

0 commit comments

Comments
 (0)