-
-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bfc6c27
commit 790f0cf
Showing
4 changed files
with
102 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: .NET Pull Request | ||
|
||
on: | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 8.0.x | ||
- name: Restore dependencies | ||
run: | | ||
dotnet restore src/S7CommPlusDriver | ||
dotnet restore src/DriverTest | ||
dotnet restore src/S7CommPlusGUIBrowser | ||
- name: Build | ||
run: | | ||
dotnet build src/S7CommPlusDriver | ||
dotnet build src/DriverTest | ||
dotnet build src/S7CommPlusGUIBrowser |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: .NET | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Fetch history | ||
run: git fetch --prune --unshallow | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: | | ||
5.0.x | ||
6.0.x | ||
8.0.x | ||
- name: Restore dependencies | ||
run: dotnet restore DotNetSiemensPLCToolBoxLibrary.sln | ||
- name: Build | ||
run: dotnet build DotNetSiemensPLCToolBoxLibrary.sln |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: .NET | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Fetch history | ||
run: git fetch --prune --unshallow | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 8.0.x | ||
- name: Restore dependencies | ||
run: | | ||
dotnet restore src/S7CommPlusDriver | ||
dotnet restore src/DriverTest | ||
dotnet restore src/S7CommPlusGUIBrowser | ||
- name: Update project version | ||
uses: roryprimrose/set-vs-sdk-project-version@v1 | ||
with: | ||
version: ${{ github.event.release.tag_name }} | ||
assemblyVersion: ${{ github.event.release.tag_name }} | ||
fileVersion: ${{ github.event.release.tag_name }} | ||
informationalVersion: ${{ github.event.release.tag_name }}-${{ github.sha }} | ||
|
||
- name: Build | ||
run: | | ||
dotnet build src/S7CommPlusDriver | ||
dotnet build src/DriverTest | ||
dotnet build src/S7CommPlusGUIBrowser | ||
- name: Publish NuGet | ||
# You may pin to the exact commit or the version. | ||
# uses: brandedoutcast/publish-nuget@c12b8546b67672ee38ac87bea491ac94a587f7cc | ||
uses: brandedoutcast/[email protected] | ||
with: | ||
# Filepath of the project to be packaged, relative to root of repository | ||
PROJECT_FILE_PATH: MonacoRoslynCompletionProvider/MonacoRoslynCompletionProvider/MonacoRoslynCompletionProvider.csproj | ||
NUGET_KEY: ${{secrets.NUGET_API_KEY}} |
This file was deleted.
Oops, something went wrong.