Update AntDesign 0.20.2 (#190) #30
Workflow file for this run
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: Release | |
env: | |
NUGET_API_KEY: ${{secrets.NUGET_API_KEY}} | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
release-and-publish-package: | |
runs-on: ubuntu-latest | |
if: github.repository_owner == 'ant-design-blazor' | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 3.1.300 | |
- uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 6.0.101 | |
- uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 7.0.100 | |
- uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 8.0.100 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: "10.x" | |
- name: Package and publish to Nugetπ¦ | |
run: | | |
VERSION=`git describe --tags` | |
echo "Publishing Version: ${VERSION}" | |
npm install | |
dotnet build ./AntDesign.Pro.sln | |
rm -rf ./node_modules | |
dotnet pack templates.csproj /p:PackageVersion=$VERSION -c Release -o publish | |
dotnet nuget push publish/*.nupkg -s https://api.nuget.org/v3/index.json -k $NUGET_API_KEY --skip-duplicate |