Merge pull request #15 from IeuanWalker/add_IsEnabled_support #49
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: Build | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
schedule: | |
- cron: '0 0 1 */3 *' # Every 3 months | |
env: | |
NET_VERSION: 7.0.101 | |
PROJECT_PATH: 'Scr/Switch/IeuanWalker.Maui.Switch.csproj' | |
NUGET_PATH: './**/IeuanWalker.Maui.Switch.1.0.0.nupkg' | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET ${{ env.NET_VERSION }} | |
uses: actions/setup-dotnet@v2 | |
with: | |
dotnet-version: ${{ env.NET_VERSION }} | |
- name: Install .NET MAUI ${{ env.NET_VERSION }} | |
run: dotnet workload install maui --ignore-failed-sources | |
- name: Restore dependencies | |
run: dotnet restore ${{ env.PROJECT_PATH }} | |
- name: Build | |
run: dotnet build ${{ env.PROJECT_PATH }} -c Release --no-restore | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: NuGet | |
path: ${{ env.NUGET_PATH }} |