Skip to content

Updated version to v0.3.1 #5

Updated version to v0.3.1

Updated version to v0.3.1 #5

name: Deploy Windows Build
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET 8
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x
- name: Build Windows App
run: |
cd src/Camelot
dotnet publish -c Release -r win-x64 -p:PublishSingleFile=true -p:PublishReadyToRun=true --self-contained=true
- name: Archive Artifact
run: |
cd src/Camelot/bin/Release/net8.0/win-x64/publish
powershell Compress-Archive -LiteralPath camelot.exe,camelot.pdb -DestinationPath CamelotWindowsSingleExe.zip
- name: Upload Release Asset
id: upload-release-asset
uses: svenstaro/upload-release-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
file: ./src/Camelot/bin/Release/net8.0/win-x64/publish/CamelotWindowsSingleExe.zip
asset_name: CamelotWindowsSingleExe.zip