Merge pull request #9 from dennisreimann/patch-1 #65
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: | |
# Run the build for pushes and pull requests targeting master | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
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: 6.0.x | |
# Run tests | |
- name: Test | |
run: dotnet test | |
- name: Publish NuGet | |
if: ${{ github.ref == 'refs/heads/master' }} # Publish only when the push is on master | |
uses: Rebel028/[email protected] | |
with: | |
PROJECT_FILE_PATH: LNURL/LNURL.csproj | |
NUGET_KEY: ${{secrets.NUGET_KEY}} | |
PACKAGE_NAME: LNURL | |
INCLUDE_SYMBOLS: false | |
VERSION_REGEX: ^\s*<PackageVersion>(.*)<\/PackageVersion>\s*$ | |
TAG_COMMIT: true | |
TAG_FORMAT: v* | |
- name: Publish Github Package Registry | |
if: ${{ github.ref == 'refs/heads/master' }} # Publish only when the push is on master | |
uses: Rebel028/[email protected] | |
with: | |
PROJECT_FILE_PATH: LNURL/LNURL.csproj | |
NUGET_SOURCE: "https://nuget.pkg.github.com/Kukks" | |
NUGET_KEY: ${{secrets.GH_TOKEN}} | |
PACKAGE_NAME: LNURL | |
INCLUDE_SYMBOLS: false | |
VERSION_REGEX: ^\s*<PackageVersion>(.*)<\/PackageVersion>\s*$ | |
TAG_COMMIT: true | |
TAG_FORMAT: v* |