Updated version to v0.3.1 #5
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: Deploy Macos Build | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET 8 | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 8.0.x | |
- name: Build Macos App | |
run: | | |
cd src/Camelot | |
dotnet restore -r osx-x64 | |
dotnet msbuild -t:BundleApp -p:RuntimeIdentifier=osx-x64 -property:Configuration=Release | |
mkdir Assets/logo.iconset | |
cp Assets/logo.png Assets/logo.iconset/icon_512x512.png | |
iconutil -c icns Assets/logo.iconset | |
cp Assets/logo.icns bin/Release/net8.0/osx-x64/publish/Camelot.app/Contents/Resources/logo.icns | |
rm Assets/logo.icns | |
rm -rf Assets/logo.iconset | |
- name: Archive Artifact | |
run: | | |
cd src/Camelot/bin/Release/net8.0/osx-x64/publish | |
zip -r CamelotMacos.zip Camelot.app | |
- 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/osx-x64/publish/CamelotMacos.zip | |
asset_name: CamelotMacos.zip |