File tree Expand file tree Collapse file tree 1 file changed +61
-0
lines changed
Expand file tree Collapse file tree 1 file changed +61
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build & Deploy
2+
3+ on :
4+ push :
5+ branches : [master]
6+ pull_request :
7+ branches : [master]
8+
9+ jobs :
10+ build :
11+ runs-on : windows-latest
12+ steps :
13+ - uses : actions/checkout@v2
14+
15+ - name : Setup MSBuild
16+ uses : microsoft/setup-msbuild@v1.0.0
17+
18+ - name : Setup VSTest
19+ uses : darenm/Setup-VSTest@v1
20+
21+ - name : Setup NuGet
22+ uses : NuGet/setup-nuget@v1.0.2
23+
24+ - name : Restore packages
25+ run : nuget restore ./HearthDb.sln
26+
27+ - name : Build
28+ run : msbuild ./HearthDb.sln /p:Configuration=Release
29+
30+ - name : Run Tests
31+ run : vstest.console "./HearthDb.Tests/bin/Release/HearthDb.Tests.dll"
32+
33+ - name : Upload artifact
34+ if : github.event_name == 'push'
35+ uses : actions/upload-artifact@v1.0.0
36+ with :
37+ name : HearthDb.dll
38+ path : " ./HearthDb/bin/Release/HearthDb.dll"
39+
40+ deploy :
41+ needs : build
42+ if : github.event_name == 'push'
43+ runs-on : ubuntu-latest
44+ steps :
45+ - name : Download artifact
46+ uses : actions/download-artifact@v1
47+ with :
48+ name : HearthDb.dll
49+ path : bin/HearthDb.dll
50+
51+ - name : Deploy
52+ uses : jakejarvis/s3-sync-action@master
53+ with :
54+ args : --acl public-read
55+ env :
56+ AWS_S3_BUCKET : ${{ secrets.AWS_S3_BUCKET }}
57+ AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
58+ AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
59+ AWS_REGION : " us-east-1"
60+ SOURCE_DIR : " bin"
61+ DEST_DIR : " hdt"
You can’t perform that action at this time.
0 commit comments