Bump Refit from 6.1.15 to 7.2.22 in /src/HCaptcha #21
Workflow file for this run
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: NETCore | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: [labeled] | |
branches: | |
- main | |
env: | |
BuildConfig: Release | |
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | |
DOTNET_VERSION: '6.0.101' # https://dotnetcli.blob.core.windows.net/dotnet/release-metadata/6.0/releases.json | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel previous builds in PR | |
uses: styfle/cancel-workflow-action@0.9.1 | |
with: | |
access_token: ${{ github.token }} | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 # avoid shallow clone so nbgv can do its work. | |
- name: 'Install .NET SDK' | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: ${{ env.DOTNET_VERSION }} | |
- name: Versioning | |
uses: dotnet/nbgv@master | |
id: nbgv | |
- name: Version Info | |
run: | | |
echo 'SemVer2: ${{ steps.nbgv.outputs.SemVer2 }}' | |
- name: Build with dotnet | |
run: dotnet build | |
--configuration ${{ env.BuildConfig }} | |
/p:Version=${{ steps.nbgv.outputs.AssemblyVersion }} | |
- name: Test with dotnet | |
run: dotnet test | |
- name: Pack NuGet | |
run: dotnet pack | |
--configuration ${{ env.BuildConfig }} | |
/p:Version=${{ steps.nbgv.outputs.NuGetPackageVersion }} | |
- name: Push to NuGet | |
run: dotnet nuget push **/*.nupkg | |
--api-key ${{ secrets.NUGET_DEPLOY_KEY }} | |
--source https://api.nuget.org/v3/index.json | |
--no-symbols 1 |