Skip to content

Bug Fix Pass

Bug Fix Pass #17

Workflow file for this run

name: Build
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
jobs:
build:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: |
6.0.x
8.0.x
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Restore dependencies
run: dotnet restore
- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v0.9.7
with:
versionSpec: "5.x"
- name: Determine Version
uses: gittools/actions/gitversion/execute@v0.9.7
with:
additionalArguments: '/updateprojectfiles /overrideconfig "mode=Mainline"'
- name: Update Changelog Version
run: |
$content = Get-Content CHANGELOG.md -Raw
$content = $content -replace "latest", "${{ env.GitVersion_SemVer }}"
Set-Content CHANGELOG.md -Value $content
shell: pwsh
- name: Build (Release)
run: dotnet build . --configuration Release -p:Version=$GitVersion_SemVer -p:LangVersion=latest
- name: GH Release
uses: softprops/action-gh-release@v1
if: ${{ !env.ACT && github.event_name == 'push' }}
with:
body: Automatic pre-release of ${{ env.GitVersion_SemVer }} for ${{ env.GitVersion_ShortSha }}
name: v${{ env.GitVersion_SemVer }}
files: |
./bin/Release/net6.0/CrimsonBanned.dll
CHANGELOG.md
fail_on_unmatched_files: true
prerelease: true
tag_name: v${{ env.GitVersion_SemVer }}