From bbef11ad64a0567fd4ee647bf2fa9906287f158b Mon Sep 17 00:00:00 2001 From: Joseph Riddle Date: Wed, 28 Jul 2021 17:15:47 -0700 Subject: [PATCH 1/2] Create release.yml --- .github/workflows/release.yml | 48 +++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..7b49991f --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,48 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the main branch + release: + types: [published] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + + - name: Publish NuGet + uses: brandedoutcast/publish-nuget@v2.5.5 + with: + # Filepath of the project to be packaged, relative to root of repository + PROJECT_FILE_PATH: + # NuGet package id, used for version detection & defaults to project name + PACKAGE_NAME: # optional + # Filepath with version info, relative to root of repository & defaults to PROJECT_FILE_PATH + VERSION_FILE_PATH: # optional + # Regex pattern to extract version info in a capturing group + VERSION_REGEX: # optional, default is ^\s*(.*)<\/Version>\s*$ + # Useful with external providers like Nerdbank.GitVersioning, ignores VERSION_FILE_PATH & VERSION_REGEX + VERSION_STATIC: # optional + # Flag to toggle git tagging, enabled by default + TAG_COMMIT: # optional, default is true + # Format of the git tag, [*] gets replaced with actual version + TAG_FORMAT: # optional, default is v* + # API key to authenticate with NuGet server + NUGET_KEY: # optional + # NuGet server uri hosting the packages, defaults to https://api.nuget.org + NUGET_SOURCE: # optional, default is https://api.nuget.org + # Flag to toggle pushing symbols along with nuget package to the server, disabled by default + INCLUDE_SYMBOLS: # optional From 7d626842da8bd71c1d575076b871615ac5efce33 Mon Sep 17 00:00:00 2001 From: Joseph Riddle Date: Thu, 29 Jul 2021 16:41:09 -0700 Subject: [PATCH 2/2] Update dotnetBuild.yml --- .github/workflows/dotnetBuild.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/dotnetBuild.yml b/.github/workflows/dotnetBuild.yml index cdf57e0f..7fbf052d 100644 --- a/.github/workflows/dotnetBuild.yml +++ b/.github/workflows/dotnetBuild.yml @@ -33,3 +33,25 @@ jobs: with: path: ${{ github.workspace }}/*.nupkg name: Intellitect.CodingGuidelines + - name: Publish NuGet + uses: brandedoutcast/publish-nuget@v2.5.5 + with: + PROJECT_FILE_PATH: IntelliTect.Analyzer/IntelliTect.Analyzer/IntelliTect.Analyzer.csproj + NUGET_KEY: {{ secrets.NUGET_KEY }} + # NuGet package id, used for version detection & defaults to project name +# PACKAGE_NAME: # optional +# # Filepath with version info, relative to root of repository & defaults to PROJECT_FILE_PATH +# VERSION_FILE_PATH: # optional +# # Regex pattern to extract version info in a capturing group +# VERSION_REGEX: # optional, default is ^\s*(.*)<\/Version>\s*$ +# # Useful with external providers like Nerdbank.GitVersioning, ignores VERSION_FILE_PATH & VERSION_REGEX +# VERSION_STATIC: # optional +# # Flag to toggle git tagging, enabled by default +# TAG_COMMIT: # optional, default is true +# # Format of the git tag, [*] gets replaced with actual version +# TAG_FORMAT: # optional, default is v* +# # API key to authenticate with NuGet server +# # NuGet server uri hosting the packages, defaults to https://api.nuget.org +# NUGET_SOURCE: # optional, default is https://api.nuget.org +# # Flag to toggle pushing symbols along with nuget package to the server, disabled by default +# INCLUDE_SYMBOLS: # optional