fix(RoomProp): support display name for all loads #350
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: CD | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
build: | |
name: "Build and release" | |
runs-on: windows-latest | |
steps: | |
- name: "Checkout Master Branch" | |
uses: actions/checkout@v2 | |
- name: Compile | |
working-directory: src/Honeybee.UI | |
run: | | |
dotnet build Honeybee.UI.csproj --configuration Release /nowarn:CS0472,CS0108 --force --no-incremental | |
ls bin -R | |
- name: Zip Build Artifact | |
run: | | |
Compress-Archive -U -Path src\Honeybee.UI\bin\Release\* -DestinationPath HoneybeeUI | |
# this is for fixing semantic-release-action | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 14 | |
- uses: cycjimmy/semantic-release-action@v3 | |
id: semantic | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
- name: Deploy | |
if: steps.semantic.outputs.new_release_published == 'true' | |
working-directory: src/Honeybee.UI | |
run: | | |
echo "Removing existing builds" | |
dotnet clean Honeybee.UI.csproj -c Release | |
rm -r -fo bin | |
echo "Rebuilding Honeybee.UI with the new version......" | |
dotnet build Honeybee.UI.csproj -p:Version=${{ steps.semantic.outputs.new_release_version }} --configuration Release --force | |
echo "Deploying Honeybee.UI......" | |
dotnet nuget push bin\Release\Honeybee.UI.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json |