Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/ardalis/apiendpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
ardalis committed Aug 7, 2020
2 parents 089b4e4 + 9eafa45 commit 5ae9931
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/publish-analyzer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: publish to nuget
on:
push:
branches:
- master # Your default release branch
paths:
- '/src/Ardalis.ApiEndpoints.CodeAnalyzers/**'
jobs:
publish:
name: list on nuget
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

# Required for a specific dotnet version that doesn't come with ubuntu-latest / windows-latest
# Visit bit.ly/2synnZl to see the list of SDKs that are pre-installed with ubuntu-latest / windows-latest
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.100

# Publish
- name: publish on version change
uses: rohith/publish-nuget@v2
with:
PROJECT_FILE_PATH: src/Ardalis.ApiEndpoints.CodeAnalyzers/Ardalis.ApiEndpoints.CodeAnalyzers.csproj # Relative to repository root
# 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 / disable git tagging
TAG_FORMAT: Analyzer_v* # Format of the git tag, [*] gets replaced with version
NUGET_KEY: ${{secrets.NUGET_API_KEY}} # nuget.org API key
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
branches:
- master # Your default release branch
paths:
- 'src/**'
- '/src/Ardalis.ApiEndpoints/**'
jobs:
publish:
name: list on nuget
Expand Down

0 comments on commit 5ae9931

Please sign in to comment.