Skip to content

Commit 4b74d2e

Browse files
authored
Update build_publish.yml
1 parent dca2ea2 commit 4b74d2e

File tree

1 file changed

+23
-20
lines changed

1 file changed

+23
-20
lines changed

.github/workflows/build_publish.yml

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -15,28 +15,31 @@ jobs:
1515
with:
1616
dotnet-version: 3.1.101
1717
- name: Build
18-
shell: bash
19-
run: ./build.sh
18+
run: dotnet build --configuration Release
2019
# - name: Test
2120
# shell: sh
2221
# run: ./mono_nunit_test.sh
2322
# - name: Publish
2423
# 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
24+
# run: dotnet nuget push
25+
# publish:
26+
# runs-on: windows-latest
27+
# steps:
28+
# - uses: actions/checkout@v2
29+
# - name: Publish to NuGet
30+
# uses: rohith/publish-nuget@v2.1.2
31+
# with:
32+
# # Filepath of the project to be packaged, relative to root of repository
33+
# PROJECT_FILE_PATH: TBAAPI.V3Client.sln
34+
# # Filepath containing version info, relative to root of repository. Defaults to `PROJECT_FILE_PATH` if not specified
35+
# VERSION_FILE_PATH: README.md # optional
36+
# # Regex (with version in a capturing group) to extract the version from `VERSION_FILE_PATH`
37+
# VERSION_REGEX: 'SDK version: ((?:\d\.?)+)' # optional, default is <Version>(.*)<\/Version>
38+
# # Whether to create a tag when there's a version change
39+
# TAG_COMMIT: false # optional, default is true
40+
# # Format of the tag, `*` is the placeholder for actual version
41+
# #TAG_FORMAT: # optional, default is v*
42+
# # API key for the NuGet feed
43+
# NUGET_KEY: ${{ secrets.NuGetAPIKey }} # optional
44+
# # NuGet package name, required when it's different from the project name
45+
# #PACKAGE_NAME: # optional

0 commit comments

Comments
 (0)