Skip to content

v1.0.0-extensions

v1.0.0-extensions #6

Workflow file for this run

name: Core CD
on:
release:
types: [ published ]
workflow_dispatch:
jobs:
publish:
name: Pack & publish
runs-on: ubuntu-latest
if: contains(github.event.release.name, 'core')
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Install .NET SDK 8.0.x
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Pack
run: dotnet pack -c Release -o nupkgs
working-directory: ./src/DomainVerifier
- name: Publish NuGet package
run: dotnet nuget push ./nupkgs/*.nupkg --source $NUGET_API_URL --api-key $NUGET_API_KEY --skip-duplicate
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
NUGET_API_URL: https://api.nuget.org/v3/index.json
working-directory: ./src/DomainVerifier