Skip to content

V2.3.3: maintenance release aligned to KNet 2.7.5 #46

V2.3.3: maintenance release aligned to KNet 2.7.5

V2.3.3: maintenance release aligned to KNet 2.7.5 #46

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI_RELEASE
# Controls when the action will run. Triggers the workflow on release published or release edited request
# events but only for the master branch
on:
release:
types:
- published
# - edited
jobs:
# This workflow contains a single job called "build_release"
build_release:
# The type of runner that the job will run on
runs-on: windows-2022
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Runs a set of commands using the runners shell
# Support longpaths
- name: Support long paths
run: git config --system core.longpaths true
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
with:
fetch-depth: '1'
submodules: 'true'
- uses: nuget/[email protected]
with:
nuget-version: '5.x'
- name: Compile
run: dotnet build --no-incremental --configuration Release /p:Platform="Any CPU" src\net\KEFCore.sln
- name: Authenticate to GitHub
run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json"
- name: Publish to GitHub
run: |
nuget push .\bin\*.nupkg -ApiKey ${{ secrets.GITHUB_TOKEN }} -Source "github" -SkipDuplicate
nuget push .\bin\*.snupkg -ApiKey ${{ secrets.GITHUB_TOKEN }} -Source "github" -SkipDuplicate
- name: Publish to NuGet
run: |
nuget push .\bin\*.nupkg -ApiKey ${{ secrets.MASES_NUGET_API_KEY }} -Source https://api.nuget.org/v3/index.json -SkipDuplicate
nuget push .\bin\*.snupkg -ApiKey ${{ secrets.MASES_NUGET_API_KEY }} -Source https://api.nuget.org/v3/index.json -SkipDuplicate