Skip to content

Commit cb9d7e0

Browse files
authored
Create build_publish.yml
1 parent ee5c11b commit cb9d7e0

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: .NET Core
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Setup .NET Core
14+
uses: actions/setup-dotnet@v1
15+
with:
16+
dotnet-version: 3.1.101
17+
- name: Build
18+
shell: bash
19+
run: ./build.sh
20+
- name: Test
21+
shell: sh
22+
run: ./mono_nunit_test.sh
23+
# - name: Publish
24+
# shell: bash
25+
# run: dotnet nuget push
26+
# - name: Publish to NuGet
27+
# uses: rohith/publish-nuget@v2.1.2
28+
# with:
29+
# # Filepath of the project to be packaged, relative to root of repository
30+
# PROJECT_FILE_PATH: TBAAPI.V3Client.sln
31+
# # Filepath containing version info, relative to root of repository. Defaults to `PROJECT_FILE_PATH` if not specified
32+
# VERSION_FILE_PATH: README.md # optional
33+
# # Regex (with version in a capturing group) to extract the version from `VERSION_FILE_PATH`
34+
# VERSION_REGEX: 'SDK version: ((?:\d\.?)+)' # optional, default is <Version>(.*)<\/Version>
35+
# # Whether to create a tag when there's a version change
36+
# TAG_COMMIT: false # optional, default is true
37+
# # Format of the tag, `*` is the placeholder for actual version
38+
# #TAG_FORMAT: # optional, default is v*
39+
# # API key for the NuGet feed
40+
# NUGET_KEY: ${{ secrets.NuGetAPIKey }} # optional
41+
# # NuGet package name, required when it's different from the project name
42+
# #PACKAGE_NAME: # optional

0 commit comments

Comments
 (0)