Skip to content

Update Build.yml

Update Build.yml #3

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
- 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
# Keep per-run Actions artifact history
- name: Upload Actions Artifact
uses: actions/upload-artifact@v4
with:
name: OptiPatcher-${{ github.run_number }}
path: ${{ github.workspace }}/x64/Release/OptiPatcher.asi
if-no-files-found: error
# Rolling GitHub Release
- name: Publish Rolling Release
uses: ncipollo/release-action@v1
with:
tag: rolling
name: Rolling Release
allowUpdates: true
makeLatest: true
artifacts: ${{ github.workspace }}/x64/Release/OptiPatcher.asi
token: ${{ secrets.GITHUB_TOKEN }}