Merge branch 'dev' #64
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: GitHub Release | |
on: | |
push: | |
branches: [ ci, avalonia ] | |
tags: | |
- 'v*.*' | |
jobs: | |
create_release: | |
name: Create GitHub Release | |
runs-on: windows-2022 | |
steps: | |
- name: Install 7Zip PowerShell Module | |
shell: powershell | |
run: Install-Module 7Zip4PowerShell -Force -Verbose | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
lfs: 'true' | |
- name: Get the project's version | |
uses: kzrnm/get-net-sdk-project-versions-action@v2.0.0 | |
id: get-version | |
with: | |
proj-path: KHFM-VF-Patch/KHFM-VF-Patch.csproj | |
- name: Build for Windows (x86) | |
shell: cmd | |
run: dotnet publish KHFM-VF-Patch/KHFM-VF-Patch.sln /p:PublishReadyToRun=true --self-contained --runtime win-x86 | |
- name: Build for Linux (x64) | |
shell: cmd | |
run: dotnet publish KHFM-VF-Patch/KHFM-VF-Patch.sln /p:PublishReadyToRun=true --self-contained --runtime linux-x64 | |
- name: Create Artifacts | |
shell: cmd | |
run: call .\CI\CreateArtifact.cmd | |
- name: Rename Windows Artifact with project version | |
shell: cmd | |
run: mv ./KHFM-VF-Patch/KHFM-VF-Patch-Windows.zip ./KHFM-VF-Patch/KHFM-VF-Patch-Windows-${{ steps.get-version.outputs.version }}.zip | |
- name: Rename Linux Artifact with project version | |
shell: cmd | |
run: mv ./KHFM-VF-Patch/KHFM-VF-Patch-Linux.zip ./KHFM-VF-Patch/KHFM-VF-Patch-Linux-${{ steps.get-version.outputs.version }}.zip | |
- name: Create Release | |
id: create_release | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: | | |
./KHFM-VF-Patch/KHFM-VF-Patch-Windows-${{ steps.get-version.outputs.version }}.zip | |
./KHFM-VF-Patch/KHFM-VF-Patch-Linux-${{ steps.get-version.outputs.version }}.zip | |
draft: true | |
prerelease: true |