Update README.md #115
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: CI | |
on: | |
push: | |
tags: | |
- v* | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
paths: | |
- MaterialColorUtilities** | |
- Playground** | |
- .github/workflows/ci.yml | |
jobs: | |
build: | |
env: | |
CONFIGURATION: 'Release' | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Get Build Version | |
run: | | |
Import-Module .\.github\workflows\GetBuildVersion.psm1 | |
Write-Host $Env:GITHUB_REF | |
$version = GetBuildVersion -VersionString $Env:GITHUB_REF | |
echo "VERSION=$version" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append | |
shell: pwsh | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3.0.3 | |
with: | |
global-json-file: global.json | |
- run: dotnet workload restore | |
- run: dotnet workload install maui | |
- name: Build and run tests | |
run: dotnet test | |
- name: Publish | |
if: startsWith(github.ref, 'refs/tags/v') | |
run: nuget push **\*.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}} |