Skip to content

Merge pull request #12 from Silver-Ore-Team/feature/options #4

Merge pull request #12 from Silver-Ore-Team/feature/options

Merge pull request #12 from Silver-Ore-Team/feature/options #4

Workflow file for this run

name: Release
permissions: write-all
on:
push:
tags:
- 'v*'
jobs:
build-release:
name: Build Release
uses: ./.github/workflows/build.yml
secrets:
SSH_KEY: ${{ secrets.NEKOBOCIK_SSH_KEY }}
with:
cmake-preset: x86-release
upload-artifact-dll: release-dll
upload-artifact-vdf: release-vdf
project-version: ${{ github.ref_name }}
push-version-commit: true
publish:
name: Publish Release
runs-on: windows-2022
needs:
- build-release
steps:
- name: Download Release DLL
uses: actions/download-artifact@v4
with:
name: release-dll
path: out/install/x86-release/bin/
- name: Download Release VDF
uses: actions/download-artifact@v4
with:
name: release-vdf
path: out/install/x86-release/
- name: Prepare Release Files
id: prepare-release
shell: powershell
env:
GITHUB_REF: ${{ github.ref_name }}
run: |
$tag = $env:GITHUB_REF -replace '^refs/tags/', ''
Compress-Archive out/install/x86-release/bin/* zMultilogue-${tag}.zip
Copy-Item out/install/x86-release/zMultilogue.vdf zMultilogue-${tag}.vdf
$prerelease = if (-not ($tag -match '^v?(\d+\.\d+\.\d+)$')) { 'true' } else { 'false' }
echo "prerelease=${prerelease}" >> $env:GITHUB_OUTPUT
- name: Release
uses: softprops/action-gh-release@v2
with:
token: ${{ github.token }}
generate_release_notes: true
fail_on_unmatched_files: true
draft: true
prerelease: ${{ steps.prepare-release.outputs.prerelease }}
files: |
zMultilogue-*.zip
zMultilogue-*.vdf