Skip to content

chore: remove SetTitle as it does not set the title #4

chore: remove SetTitle as it does not set the title

chore: remove SetTitle as it does not set the title #4

Workflow file for this run

name: Combined CI / Release
on:
workflow_dispatch:
push:
tags:
- '*'
branches:
- '**'
env:
IS_RELEASE: ${{ startsWith(github.ref, 'refs/tags/') }}
jobs:
ci_cd:
runs-on: windows-latest
steps:
- name: Write release version
if: ${{ env.IS_RELEASE == 'true' }}
run: |
VERSION=${GITHUB_REF_NAME#v}
echo Version: $VERSION
echo "VERSION=$VERSION" >> $GITHUB_ENV
- uses: actions/checkout@v4
- name: Set up .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0'
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: 'microsoft'
java-version: '17'
- name: Restore dependencies
run: dotnet restore ElectronWebsiteWrapper.sln
- name: Build
run: dotnet build --no-restore ElectronWebsiteWrapper.sln
- name: Restore .NET tools
run: dotnet tool restore
- name: Build Windows app with ElectronNET
if: ${{ env.IS_RELEASE == 'true' }}
run: dotnet electronize build /target win /Version ${{ env.VERSION }}
- name: Build Windows app with ElectronNET
if: ${{ env.IS_RELEASE == 'false' }}
run: dotnet electronize build /target win
- name: Release
uses: softprops/action-gh-release@v2
if: ${{ env.IS_RELEASE == 'true' }}
with:
files: bin/Desktop/ElectronWebsiteWrapper*.exe # forward slashes MUST be used here, otherwise no artifacts will be found
tag_name: ${{ env.VERSION }}