Skip to content

update changelogs for patch release #98

update changelogs for patch release

update changelogs for patch release #98

Workflow file for this run

name: Release
on:
push:
tags:
- "v*"
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET Core
uses: actions/setup-dotnet@v2
with:
dotnet-version: |
8.0.x
7.0.x
6.0.x
include-prerelease: true
- name: remove global.json so that 7.0 builds
run: rm global.json
- name: Restore tools
run: dotnet tool restore
- name: Run Build
run: dotnet pack -c Release -o ./bin
env:
BuildNet8: true
- name: Get Changelog Entry
id: changelog_reader
uses: mindsers/[email protected]
with:
version: ${{ github.ref }}
path: ./CHANGELOG.md
- name: Create Release
uses: ncipollo/release-action@v1
with:
artifacts: bin/*.nupkg
token: ${{ secrets.GITHUB_TOKEN }}
body: ${{ steps.changelog_reader.outputs.log_entry }}
- name: Push packages
run: dotnet nuget push bin/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_KEY }}