CD #63
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: | |
workflow_dispatch: | |
workflow_run: | |
workflows: ["CI"] | |
branches: [main] | |
types: | |
- completed | |
jobs: | |
publish-core: | |
name: Build, Pack & Publish HassClient.Core | |
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET 5.0 | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 5.0.x | |
- name: publish on version change | |
id: publish_nuget | |
uses: rohith/publish-nuget@v2 | |
with: | |
# Filepath of the project to be packaged, relative to root of repository | |
PROJECT_FILE_PATH: ./src/HassClient.Core/HassClient.Core.csproj | |
# API key to authenticate with NuGet server | |
NUGET_KEY: ${{secrets.NUGET_API_KEY}} | |
publish-ws: | |
name: Build, Pack & Publish HassClient.WS | |
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET 5.0 | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 5.0.x | |
- name: publish on version change | |
id: publish_nuget | |
uses: rohith/publish-nuget@v2 | |
with: | |
# Filepath of the project to be packaged, relative to root of repository | |
PROJECT_FILE_PATH: ./src/HassClient.WS/HassClient.WS.csproj | |
# API key to authenticate with NuGet server | |
NUGET_KEY: ${{secrets.NUGET_API_KEY}} |