chore(deps): update dependency meziantou.analyzer to 2.0.179 #57
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: Combined CI / Release | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- '*' | |
branches: | |
- '**' | |
env: | |
IS_RELEASE: ${{ startsWith(github.ref, 'refs/tags/') }} | |
VERSION: '0.0.1' | |
jobs: | |
ci_cd: | |
runs-on: windows-latest | |
steps: | |
- name: Write release version | |
if: ${{ env.IS_RELEASE == 'true' }} | |
run: | | |
$VERSION = $env:GITHUB_REF_NAME.TrimStart('v') | |
Write-Host "Version: $VERSION" | |
Add-Content -Path $env:GITHUB_ENV -Value "VERSION=$VERSION" | |
- uses: actions/checkout@v4 | |
- name: Set up .NET | |
uses: actions/setup-dotnet@v4 | |
- 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 | |
run: dotnet electronize build /target win /Version ${{ env.VERSION }} | |
- name: Create CHANGELOG | |
id: changelog | |
uses: Requarks/changelog-action@v1 | |
if: ${{ env.IS_RELEASE == 'true' }} | |
with: | |
token: ${{ github.token }} | |
tag: ${{ env.VERSION }} | |
excludeTypes: build,docs,other,style,chore(deps) | |
- 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 }} | |
body: ${{ steps.changelog.outputs.changes }} |