Skip to content

Commit cf2d0fe

Browse files
authored
Update build_publish.yml
1 parent 9bcfc02 commit cf2d0fe

File tree

1 file changed

+25
-14
lines changed

1 file changed

+25
-14
lines changed

.github/workflows/build_publish.yml

Lines changed: 25 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,35 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v2
1313

14-
- name: Add msbuild to PATH
15-
uses: microsoft/setup-msbuild@v1.0.0
16-
17-
- name: Setup NuGet
18-
uses: NuGet/setup-nuget@v1.0.2
14+
# - name: Add msbuild to PATH
15+
# uses: microsoft/setup-msbuild@v1.0.0
16+
17+
# - name: Setup NuGet
18+
# uses: NuGet/setup-nuget@v1.0.2
19+
# with:
20+
# nuget-api-key: ${{ secrets.NuGetAPIKey }}
21+
22+
- name: Setup DotNet
23+
uses: actions/setup-dotnet@v1
1924
with:
20-
nuget-api-key: ${{ secrets.NuGetAPIKey }}
21-
22-
- name: Restore NuGet Packages
23-
run: nuget restore TBAAPI.V3Client.sln
25+
dotnet-version: '3.1.101'
26+
env:
27+
NUGET_AUTH_TOKEN: ${{ secrets.NuGetAPIKey }}
28+
29+
# - name: Restore NuGet Packages
30+
# run: dotnet restore TBAAPI.V3Client.sln
31+
32+
- name: Build
33+
run: dotnet build --configuration Release TBAAPI.V3Client.sln
2434

25-
# - name: Build
26-
# run: dotnet build --configuration Release
35+
# - name: Build and Publish Web App
36+
# run: msbuild TBAAPI.V3Client.sln /p:Configuration=Release /p:DeployOnBuild=true /p:PublishProfile=FolderProfile
2737

28-
- name: Build and Publish Web App
29-
run: msbuild TBAAPI.V3Client.sln /p:Configuration=Release /p:DeployOnBuild=true /p:PublishProfile=FolderProfile
30-
38+
- name: Create the package
39+
run: dotnet pack --configuration Release TBAAPI.V3Client.sln
3140

41+
# - name: Publish the package to NuGet
42+
# run: dotnet nuget push <my project>/bin/Release/*.nupkg
3243

3344
# - name: Test
3445
# shell: sh

0 commit comments

Comments
 (0)