Skip to content

Commit c684cbe

Browse files
Add GitHub Actions CI workflow
1 parent 1b1ca15 commit c684cbe

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

.github/workflows/ci.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
- develop
6+
- "feature/**"
7+
- "release/**"
8+
- "hotfix/**"
9+
tags:
10+
- "*.*.*"
11+
paths-ignore:
12+
- "README.md"
13+
14+
pull_request:
15+
16+
workflow_dispatch:
17+
18+
env:
19+
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
20+
DOTNET_CLI_TELEMETRY_OPTOUT: true
21+
DOTNET_NOLOGO: true
22+
23+
jobs:
24+
build:
25+
strategy:
26+
fail-fast: false
27+
matrix:
28+
job:
29+
- os: windows-2019
30+
build: ./build.cmd
31+
push: true
32+
name: ${{ matrix.job.os }}
33+
runs-on: ${{ matrix.job.os }}
34+
steps:
35+
- name: Setup netcoreapp3.1
36+
uses: actions/[email protected]
37+
with:
38+
dotnet-version: "3.1.407"
39+
- name: Setup net5.0
40+
uses: actions/[email protected]
41+
with:
42+
dotnet-version: "5.0.201"
43+
- name: Run dotnet --info
44+
run: dotnet --info
45+
- uses: actions/[email protected]
46+
with:
47+
fetch-depth: 0
48+
- name: Build
49+
run: ${{ matrix.job.build }} --verbosity=diagnostic --target=pack
50+
- name: Publish artifacts
51+
if: matrix.job.push && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/'))
52+
uses: actions/[email protected]
53+
with:
54+
if-no-files-found: warn
55+
name: package
56+
path: artifact/nuget/**/*

0 commit comments

Comments
 (0)