Skip to content

Updated pattern for one of the patches in InZOI #71

Updated pattern for one of the patches in InZOI

Updated pattern for one of the patches in InZOI #71

Workflow file for this run

name: Build
on:
push:
branches:
- main
workflow_dispatch:
env:
SOLUTION_FILE_PATH: .
BUILD_CONFIGURATION: Release
permissions:
contents: write
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Build
working-directory: ${{ env.GITHUB_WORKSPACE }}
run: msbuild /m /p:Configuration=${{ env.BUILD_CONFIGURATION }} ${{ env.SOLUTION_FILE_PATH }} /verbosity:minimal
- name: Generate timestamp
id: buildtime
shell: pwsh
run: |
$ts = Get-Date -Format "yyyyMMdd_HHmm"
echo "timestamp=$ts" >> $env:GITHUB_OUTPUT
- name: Upload Actions Artifact
uses: actions/upload-artifact@v4
with:
name: OptiPatcher-${{ steps.buildtime.outputs.timestamp }}
path: ${{ github.workspace }}/x64/Release/OptiPatcher.asi
if-no-files-found: error
- name: Generate Rolling Release notes
shell: pwsh
run: |
git fetch --tags
$base = git describe --tags --abbrev=0 --match "v*" 2>$null
if ($base) {
$range = "$base..HEAD"
} else {
$range = "HEAD"
}
$commits = git log $range --pretty=format:"- %s (%h)" | Out-String
$commits = $commits.Trim()
if (-not $commits) {
$commits = "- No changes since last release"
}
@"
## Rolling Release
**Base version:** $base
**Build commit:** `${{ github.sha }}`
**Build date:** $(Get-Date -Format "yyyy-MM-dd HH:mm")
### Changes since last release
$commits
"@ | Out-File release-notes.md -Encoding utf8
- name: Publish Rolling Release
uses: ncipollo/release-action@v1
with:
tag: rolling
name: Rolling Release
allowUpdates: true
makeLatest: true
replacesArtifacts: true
artifacts: ${{ github.workspace }}/x64/Release/OptiPatcher.asi
bodyFile: release-notes.md
token: ${{ secrets.GITHUB_TOKEN }}