Skip to content

Release Hercules

Release Hercules #9

Workflow file for this run

name: Release Hercules
on:
workflow_dispatch:
inputs:
prerelease:
description: 'Pre-release'
required: true
default: true
type: boolean
jobs:
build:
runs-on: windows-latest # For a list of available runner types, refer to
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Install .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v2
- name: Publish
run: dotnet publish Hercules\Hercules.csproj /p:PublishProfile=Hercules\Properties\PublishProfiles\PublishProfile.pubxml /p:BuildNumber=${{ github.run_number }}
- name: Create rev.conf
run: echo "${{ github.run_number }}" > rev.conf
- name: Inno Setup Action
uses: Minionguyjpro/Inno-Setup-Action@v1.2.5
with:
path: Setup/Hercules.iss
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
prerelease: ${{ inputs.prerelease }}
files: |
Setup/Output/hercules_setup.exe
rev.conf