-
Notifications
You must be signed in to change notification settings - Fork 4
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
Showing
4 changed files
with
64 additions
and
2 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,29 @@ | ||
name: Build and package feature branch. Deploy to MyGet | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'feature/**' | ||
|
||
jobs: | ||
build-test-package: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@master | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup .NET Core SDK | ||
uses: actions/setup-dotnet@master | ||
with: | ||
dotnet-version: '3.1.x' | ||
|
||
- name: Build with dotnet | ||
run: dotnet build --configuration Release | ||
|
||
- name: Generate nuget package | ||
run: dotnet pack --configuration Release -o nupkg | ||
|
||
- name: Push packages | ||
run: dotnet nuget push './nupkg/*.nupkg' --api-key ${{secrets.MYGET_APIKEY}} --source https://www.myget.org/F/etherna/api/v3/index.json |
2 changes: 1 addition & 1 deletion
2
.github/workflows/build-test-package.yml → .github/workflows/myget-stable-deploy.yml
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
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,31 @@ | ||
name: Build test and package master branch. Deploy to NuGet | ||
|
||
on: | ||
push: | ||
branches: master | ||
|
||
jobs: | ||
build-test-package: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@master | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup .NET Core SDK | ||
uses: actions/setup-dotnet@master | ||
with: | ||
dotnet-version: '3.1.x' | ||
|
||
- name: Build with dotnet | ||
run: dotnet build --configuration Release | ||
|
||
- name: Run unit tests | ||
run: dotnet test --configuration Release | ||
|
||
- name: Generate nuget package | ||
run: dotnet pack --configuration Release -o nupkg | ||
|
||
- name: Push packages | ||
run: dotnet nuget push './nupkg/*.nupkg' --api-key ${{secrets.NUGET_KEY}} --source https://api.nuget.org/v3/index.json |
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