fix path #3
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
name: 'Publish application' | |
on: push | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the code | |
- uses: actions/checkout@v2 | |
# Install .NET Core SDK | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 8.0.x | |
- name: Test | |
run: dotnet test | |
- name: Publish NuGet | |
if: ${{ github.ref == 'refs/heads/master' }} # Publish only when the push is on master | |
uses: Rebel028/publish-nuget@v2.7.0 | |
with: | |
PROJECT_FILE_PATH: DotNut/DotNut.csproj | |
NUGET_KEY: ${{secrets.NUGET_KEY}} | |
PACKAGE_NAME: DotNut | |
INCLUDE_SYMBOLS: false | |
VERSION_REGEX: ^\s*<PackageVersion>(.*)<\/PackageVersion>\s*$ | |
TAG_COMMIT: true | |
TAG_FORMAT: DotNut/v* | |
- name: Publish Github Package Registry | |
if: ${{ github.ref == 'refs/heads/master' }} # Publish only when the push is on master | |
uses: Rebel028/publish-nuget@v2.7.0 | |
with: | |
PROJECT_FILE_PATH: DotNut/DotNut.csproj | |
NUGET_SOURCE: "https://nuget.pkg.github.com/Kukks" | |
NUGET_KEY: ${{secrets.GH_TOKEN}} | |
PACKAGE_NAME: DotNut | |
INCLUDE_SYMBOLS: false | |
VERSION_REGEX: ^\s*<PackageVersion>(.*)<\/PackageVersion>\s*$ | |
TAG_COMMIT: true | |
TAG_FORMAT: DotNut/v* |