-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (34 loc) · 1.11 KB
/
codeExecutor-ci.yml
File metadata and controls
44 lines (34 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Code Executor CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
NETCORE_VERSION: '2.2'
NUGET_PROJECT: 'CodeExecutor'
jobs:
build:
name: Build and create nuget package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core ${{env.NETCORE_VERSION}}
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{env.NETCORE_VERSION}}
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
#- name: Test
# run: dotnet test --no-restore --verbosity normal
- name: Create Nuget package
run: dotnet pack --no-build -c Release --no-restore --output "${{ github.workspace }}/package"
- name: Upload code executor nuget package to build artifacts
uses: actions/upload-artifact@v2
with:
# Artifact name
name: ${{env.NUGET_PROJECT}} nuget package
# A file, directory or wildcard pattern that describes what to upload
path: "${{ github.workspace }}/package"