Skip to content

Commit be13b58

Browse files
committed
eork on publish
1 parent 6932f37 commit be13b58

File tree

1 file changed

+9
-21
lines changed

1 file changed

+9
-21
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -14,34 +14,22 @@ jobs:
1414
- name: Fetch history
1515
run: git fetch --prune --unshallow
1616
- name: Setup .NET
17-
uses: actions/setup-dotnet@v1
17+
uses: actions/setup-dotnet@v4
1818
with:
19-
dotnet-version: 8.0.x
19+
dotnet-version: |
20+
5.0.x
21+
6.0.x
22+
8.0.x
2023
- name: Restore dependencies
21-
run: |
22-
dotnet restore src/S7CommPlusDriver
23-
dotnet restore src/DriverTest
24-
dotnet restore src/S7CommPlusGUIBrowser
25-
24+
run: dotnet restore DotNetSiemensPLCToolBoxLibrary.sln
2625
- name: Update project version
2726
uses: roryprimrose/set-vs-sdk-project-version@v1
2827
with:
2928
version: ${{ github.event.release.tag_name }}
3029
assemblyVersion: ${{ github.event.release.tag_name }}
3130
fileVersion: ${{ github.event.release.tag_name }}
3231
informationalVersion: ${{ github.event.release.tag_name }}-${{ github.sha }}
33-
3432
- name: Build
35-
run: |
36-
dotnet build src/S7CommPlusDriver
37-
dotnet build src/DriverTest
38-
dotnet build src/S7CommPlusGUIBrowser
39-
40-
- name: Publish NuGet
41-
# You may pin to the exact commit or the version.
42-
# uses: brandedoutcast/publish-nuget@c12b8546b67672ee38ac87bea491ac94a587f7cc
43-
uses: brandedoutcast/[email protected]
44-
with:
45-
# Filepath of the project to be packaged, relative to root of repository
46-
PROJECT_FILE_PATH: MonacoRoslynCompletionProvider/MonacoRoslynCompletionProvider/MonacoRoslynCompletionProvider.csproj
47-
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
33+
run: dotnet build DotNetSiemensPLCToolBoxLibrary.sln
34+
# - name: Publish Nuget
35+
# run: dotnet nuget push DotNetSiemensPLCToolBoxLibrary.sln --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json

0 commit comments

Comments
 (0)