Skip to content

Update changelog for release: v1.0.0-beta3 #11

Update changelog for release: v1.0.0-beta3

Update changelog for release: v1.0.0-beta3 #11

Workflow file for this run

name: Release new version
on:
push:
tags:
- v*
jobs:
publish-nuget:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: true
- name: Get version from tag
id: get-version
uses: battila7/[email protected]
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
- name: Set AssemblyInfo version
uses: vers-one/[email protected]
with:
version: ${{ steps.get-version.outputs.major }}.${{ steps.get-version.outputs.minor }}.${{ steps.get-version.outputs.patch }}
file: ${{ github.workspace }}/Moffat.EndlessOnline.SDK/Properties/AssemblyInfo.cs
- name: Restore
run: dotnet restore
- name: Build
run: dotnet build -c Release --no-restore
- name: Pack NuGet package
run: dotnet pack Moffat.EndlessOnline.SDK/Moffat.EndlessOnline.SDK.csproj -c Release --no-build --no-restore -p:PackageVersion=${{ steps.get-version.outputs.version-without-v }} -o ${{ github.workspace }}/pkgs
- name: Push to NuGet
uses: edumserrano/[email protected]
with:
api-key: "${{ secrets.NUGET_PUSH_API_KEY }}"
nuget-package: ${{ github.workspace }}/pkgs/*.nupkg
github-release:
needs: publish-nuget
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get version from tag
id: get-version
uses: battila7/get-version-action@v2
- name: Parse Changelog
id: changelog
uses: coditory/changelog-parser@v1
with:
version: ${{ steps.get-version.outputs.version-without-v }}
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
name: Moffat.EndlessOnline.SDK v${{ steps.changelog.outputs.version }}
body: ${{ steps.changelog.outputs.description }}