Run tailwind command from /Tailwind directory #75
This file contains hidden or 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: Publish NuGet packages | |
on: | |
push: | |
branches: [ "main" ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 #ubuntu-latest doesnt work at the moment, see: https://github.com/NuGet/setup-nuget/issues/168 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup NuGet.exe for use with actions | |
uses: nuget/setup-nuget@v2 | |
with: | |
nuget-api-key: ${{secrets.NUGET_API_KEY}} | |
nuget-version: 'latest' | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 9 | |
- name: Restore dependencies | |
run: dotnet restore mvdmio.Tailwind.NET | |
- name: Build | |
run: dotnet build mvdmio.Tailwind.NET --no-restore | |
- name: Push package | |
run: nuget push **\*.nupkg -Source 'https://api.nuget.org/v3/index.json' -NonInteractive -SkipDuplicate -Verbosity normal |