adjust version to 3.8.1 #38
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: Release | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
deploy_nuget_packages: | |
runs-on: windows-latest | |
env: | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@master | |
- name: Install NuGet client | |
uses: warrenbuckley/Setup-Nuget@v1 | |
- name: Add private GitHub registry to NuGet | |
run: nuget sources add -name "GPR" -Source https://nuget.pkg.github.com/DKE-Data/index.json -Username DKE-Data -Password ${{ secrets.GITHUB_TOKEN }} -StorePasswordInClearText | |
- name: Build solution and generate NuGet package | |
run: dotnet pack -c Release -o out | |
- name: Push generated package to GitHub registry | |
run: nuget push .\out\*.nupkg -Source "GPR" -SkipDuplicate | |
create-github-release: | |
name: Create GitHub Release | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Create Release | |
run: gh release create ${{ github.ref }} --generate-notes | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |