Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sailro committed Apr 22, 2024
1 parent 1966c4e commit 6abc209
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions .github/workflows/ci-installer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,18 @@ on:
branches:
- master
- release/*
tags:
- installer-*
pull_request:
branches:
- master
- release/*

env:
PUBLISH_PATH: './Installer/bin/Release/net8.0/win-x64/publish/'
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_NOLOGO: 1

jobs:
windows:
runs-on: windows-latest
Expand All @@ -19,21 +26,31 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Setup .NET
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'

- name: Build
run: dotnet build -c Release ./Installer/Installer.csproj
shell: cmd

- name: Publish
run: dotnet publish -c Release ./Installer/Installer.csproj
shell: cmd

- name: 'Upload Artifact'
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: Installer.exe
path: ./Installer/bin/Release/net8.0/win-x64/publish/Installer.exe
path: ${{ env.PUBLISH_PATH }}Installer.exe

- name: Zip
if: startsWith(github.ref, 'refs/tags/')
run: Compress-Archive -Path ${{ env.PUBLISH_PATH }}Installer.exe -Destination ./Installer.zip
shell: powershell

- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: ./Installer.zip
make_latest: true

0 comments on commit 6abc209

Please sign in to comment.