Skip to content

Commit f991078

Browse files
authored
Create build.yml
1 parent e887911 commit f991078

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

build.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: .NET Core Desktop
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
env:
13+
ROOT: ./src
14+
NUGET_AUTH_TOKEN: ${{secrets.token}}
15+
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v2
19+
with:
20+
fetch-depth: 0
21+
22+
- name: Install .NET Core
23+
uses: actions/setup-dotnet@v1
24+
with:
25+
dotnet-version: 5.0.x
26+
27+
- name: 📂 Files
28+
working-directory: ${{env.ROOT}}
29+
run: ls -R
30+
31+
- name: 🚀 Building CodeBase.Client
32+
working-directory: ${{env.ROOT}}/CodeBase.Client
33+
run: dotnet publish -c RELEASE -o out
34+
35+
- uses: actions/upload-artifact@v2
36+
with:
37+
name: builds
38+
path: ${{env.ROOT}}/**/out
39+
retention-days: 1

0 commit comments

Comments
 (0)