diff --git a/.github/workflows/PublishNuget.yml b/.github/workflows/PublishNuget.yml index f80306eb..fd8945bc 100644 --- a/.github/workflows/PublishNuget.yml +++ b/.github/workflows/PublishNuget.yml @@ -2,7 +2,7 @@ name: Publish NuGet Package on: push: - branches: ['nightly'] # Only runs on pushes to the 'nightly' branch + branches: ['nightly', "publish_bugfixes"] # Only runs on pushes to the 'nightly' branch workflow_dispatch: # Allows manual runs from the Actions tab jobs: @@ -34,15 +34,22 @@ jobs: run: npm install working-directory: src/Components + # Creates css file with current tailwind style - name: Run Prebuild Script run: npm run prebuild:net working-directory: src/Components - - name: Build Project + - name: Build Components Project run: dotnet build src/Components/src/Components.fsproj --configuration Release /p:GitTag=$GIT_TAG_LATEST - - name: Pack NuGet Package + - name: Build Shared Project + run: dotnet build src/Shared/Shared.fsproj --configuration Release /p:GitTag=$GIT_TAG_LATEST + + - name: Pack Components NuGet Package run: dotnet pack src/Components/src/Components.fsproj --configuration Release --output nupkgs /p:GitTag=$GIT_TAG_LATEST + - name: Pack Shared NuGet Package + run: dotnet pack src/Shared/Shared.fsproj --configuration Release --output nupkgs /p:GitTag=$GIT_TAG_LATEST + - name: Publish to NuGet run: dotnet nuget push nupkgs/*.nupkg --api-key ${{ secrets.NUGET_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate diff --git a/src/Components/src/Components.fsproj b/src/Components/src/Components.fsproj index 1c59e8a1..16f3af20 100644 --- a/src/Components/src/Components.fsproj +++ b/src/Components/src/Components.fsproj @@ -18,10 +18,6 @@ README.md - - - - diff --git a/src/Shared/Shared.fsproj b/src/Shared/Shared.fsproj index 074874e9..0325ed48 100644 --- a/src/Shared/Shared.fsproj +++ b/src/Shared/Shared.fsproj @@ -3,6 +3,20 @@ netstandard2.0 + + + Swate.Components.Core + $(GitTag) + Kevin Frey + Types for Swate.Components + MIT + F# fable rdm react fable-library fable-javascript + https://github.com/nfdi4plants/Swate + https://github.com/nfdi4plants/Swate + git + README.md + + @@ -12,4 +26,11 @@ + + + + + + + \ No newline at end of file