Skip to content

Update README.md

Update README.md #115

Workflow file for this run

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}}