diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1accd03d..392ef4ef 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,7 +8,7 @@ on: jobs: build: name: Build - ${{ matrix.configuration }} - + strategy: matrix: configuration: [ Debug, Release ] @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - + - name: Setup dotnet uses: actions/setup-dotnet@v3 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6ce136ca..1d97c231 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,5 @@ name: Create release + # On push to master branch. i.e. when we merge a PR. on: push: @@ -9,20 +10,20 @@ env: PACKAGE_PATH: /home/runner/work/Blazor.Diagrams/Blazor.Diagrams/src/Blazor.Diagrams/bin/Release/*.nupkg jobs: - build: + release: name: Build - Release runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - + + - name: Checkout + uses: actions/checkout@v3 + - name: Setup dotnet uses: actions/setup-dotnet@v3 with: - dotnet-version: | - 6.0.x - 3.1.x - + dotnet-version: '6.0.x' + # Finds the latest release and increases the version - name: Get next version uses: reecetech/version-increment@2023.9.3 @@ -59,3 +60,8 @@ jobs: with: files: ${{ env.PACKAGE_PATH }} tag_name: ${{ steps.version.outputs.version }} + + - name: Push NuGet Package to NuGet Gallery + run: | + nuget setapikey ${{ secrets.NUGET_API_KEY }} + nuget push ${{ env.PACKAGE_PATH }} -Source https://api.nuget.org/v3/index.json diff --git a/README.md b/README.md index 5bfe94af..43b656c5 100644 --- a/README.md +++ b/README.md @@ -2,13 +2,13 @@ ![](ZBD.png) -Z.Blazor.Diagrams is a fully customizable and extensible all-purpose diagrams library for Blazor (both Server Side and WASM). It was first inspired by the popular React library [react-diagrams](https://github.com/projectstorm/react-diagrams), but then evolved into something much bigger. ZBD can be used to make advanced diagrams with a custom design. Even the behavior of the library is "hackable" and can be changed to suit your needs. +Z.Blazor.Diagrams is a fully customizable and extensible all-purpose diagrams library for Blazor (both Server Side and WASM). It was first inspired by the popular React library [react-diagrams](https://github.com/projectstorm/react-diagrams), but then evolved into something much bigger. ZBD can be used to make advanced diagrams with a custom design. Even the behavior of the library is "hackable" and can be changed to suit your needs. + +WTG.Z.Blazor.Diagarms is a fork of Z.Blazor.Diagrams with new features and bug fixes first targeting WiseTech Global products. | NuGet Package | Version | Download | | ---------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | -| Z.Blazor.Diagrams.Core | [![NuGet](https://img.shields.io/nuget/v/Z.Blazor.Diagrams.Core.svg)](https://www.nuget.org/packages/Z.Blazor.Diagrams.Core) | [![Nuget](https://img.shields.io/nuget/dt/Z.Blazor.Diagrams.Core.svg)](https://www.nuget.org/packages/Z.Blazor.Diagrams.Core) | -| Z.Blazor.Diagrams | [![NuGet](https://img.shields.io/nuget/v/Z.Blazor.Diagrams.svg)](https://www.nuget.org/packages/Z.Blazor.Diagrams) | [![Nuget](https://img.shields.io/nuget/dt/Z.Blazor.Diagrams.svg)](https://www.nuget.org/packages/Z.Blazor.Diagrams) | -| Z.Blazor.Diagrams.Algorithms | [![NuGet](https://img.shields.io/nuget/v/Z.Blazor.Diagrams.Algorithms.svg)](https://www.nuget.org/packages/Z.Blazor.Diagrams.Algorithms) | [![Nuget](https://img.shields.io/nuget/dt/Z.Blazor.Diagrams.Algorithms.svg)](https://www.nuget.org/packages/Z.Blazor.Diagrams.Algorithms) | +| WTG.Z.Blazor.Diagrams | [![NuGet](https://img.shields.io/nuget/v/WTG.Z.Blazor.Diagrams.svg)](https://www.nuget.org/packages/WTG.Z.Blazor.Diagrams) | [![Nuget](https://img.shields.io/nuget/dt/WTG.Z.Blazor.Diagrams.svg)](https://www.nuget.org/packages/WTG.Z.Blazor.Diagrams) | | Badges | | | ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | @@ -58,9 +58,16 @@ Repository: https://github.com/Blazor-Diagrams/Blazor.DatabaseDesigner ### Contributing -All kinds of contributions are welcome! +All kinds of contributions are welcome! If you're interested in helping, please create an issue or comment on an existing one to explain what you will be doing. This is because multiple people can be working on the same problem. ## Feedback If you find a bug or you want to see a functionality in this library, feel free to open an issue. + +## Deployment + +This project is hosted on NuGet. Merges to master will trigger a release action that will +- Build WTG.Z.Blazor.Diagrams +- Host the package on Github as a release +- Push it to the WTG.Z.Blazor.Diagrams NuGet Gallery