-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
3 changed files
with
41 additions
and
3 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,38 @@ | ||
#### Build and tests all pushes, also code coverage | ||
name: publish nuget packages to nuget server | ||
on: | ||
push: | ||
tags: | ||
- '*' | ||
jobs: | ||
deploy_nuget: | ||
name: publish nuget packages | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- uses: actions/setup-dotnet@v1 | ||
- name: Get Git Version | ||
uses: docker://gittools/gitversion:5.2.5-beta1-7-linux-netcoreapp2.1 | ||
with: | ||
args: /github/workspace /nofetch /exec /bin/sh /execargs "-c \"echo $GitVersion_FullSemVer > /github/workspace/version.txt\"" | ||
- name: publish on version change | ||
uses: rohith/publish-nuget@v2 | ||
with: | ||
PROJECT_FILE_PATH: src/DaemonRunner/DaemonRunner/DaemonRunner.csproj # Relative to repository root | ||
VERSION_STATIC: ${GIT_TAG_NAME}-alpha | ||
# VERSION_FILE_PATH: Directory.Build.props # Filepath with version info, relative to repository root. Defaults to project file | ||
# VERSION_REGEX: <Version>(.*)<\/Version> # Regex pattern to extract version info in a capturing group | ||
# TAG_COMMIT: true # Flag to enable / disalge git tagging | ||
# TAG_FORMAT: v* # Format of the git tag, [*] gets replaced with version | ||
# NUGET_KEY: ${{secrets.NUGET_API_KEY}} # nuget.org API key | ||
# PACKAGE_NAME: NuGet package name, required when it's different from project name. Defaults to project name | ||
# - name: Build code | ||
# run: dotnet build | ||
# - name: Test code | ||
# run: dotnet test -v minimal /p:CollectCoverage=true /p:CoverletOutputFormat=lcov /p:CoverletOutput=${{github.workspace}}/codecover/lcov.info | ||
|
||
# - name: Publish coverage report to coveralls.io | ||
# uses: coverallsapp/github-action@master | ||
# with: | ||
# github-token: ${{ secrets.GITHUB_TOKEN }} | ||
# path-to-lcov: ${{github.workspace}}/codecover/lcov.info |
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