Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WI00764279 -- NCN Diagrams Move wtg.blazor.diagrams to nuget.org #44

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
dd5ca1e
experimenting with release.yml
vinnie-fialok Jul 2, 2024
fa33bfe
attempting to publish-pkg nuget-pack workflow
vinnie-fialok Jul 3, 2024
467a347
attempting to build first
vinnie-fialok Jul 3, 2024
475b8ad
removed whitespace from build.yml
vinnie-fialok Jul 3, 2024
c990435
alternative tag extraction using battila action
vinnie-fialok Jul 3, 2024
4392197
fixed tag extraction uses action
vinnie-fialok Jul 3, 2024
87fe8e3
printing tags
vinnie-fialok Jul 3, 2024
72068a7
useing sha for tag for testing
vinnie-fialok Jul 3, 2024
16f2898
removed build from release
vinnie-fialok Jul 3, 2024
70c2df8
added back build step include --no-restore and --no-build flags
vinnie-fialok Jul 3, 2024
3ff95b1
moved nuspec and build files, added targets file
vinnie-fialok Jul 3, 2024
56e41c7
release.yml just packs
vinnie-fialok Jul 3, 2024
029cbff
copying build.yml to build
vinnie-fialok Jul 3, 2024
4686bf5
removed nuspec reference from blazor.diagram.csproj
vinnie-fialok Jul 3, 2024
03b3819
dotnet pack step
vinnie-fialok Jul 3, 2024
5e9437c
packing seperately
vinnie-fialok Jul 3, 2024
1fd8415
only packing blazor.diagrams
vinnie-fialok Jul 3, 2024
227fad9
gets version from tag
vinnie-fialok Jul 3, 2024
2f6e70e
testing github ref_name
vinnie-fialok Jul 3, 2024
4737280
testing with tags
vinnie-fialok Jul 4, 2024
2b7df6a
testing pushing to nuget
vinnie-fialok Jul 4, 2024
e7352b9
fixed .nupkg directory
vinnie-fialok Jul 4, 2024
1cf9029
removed this branch from on:push: event
vinnie-fialok Jul 5, 2024
9c30c92
re-added auto-versioning + testing it works
vinnie-fialok Jul 5, 2024
13eb146
removed this branch from on:push, ready
vinnie-fialok Jul 5, 2024
4a72b68
removed tags from workflow on:
vinnie-fialok Jul 5, 2024
227ee25
removed version data from Directory.Build.props
vinnie-fialok Jul 5, 2024
4275541
added to readme
vinnie-fialok Jul 5, 2024
45f1675
updated readme with WTG.Z.Blazor.Diagrams
vinnie-fialok Jul 5, 2024
225b54d
updated readme
vinnie-fialok Jul 5, 2024
1fe18c6
updated readment and release.yml
vinnie-fialok Jul 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ on:
jobs:
build:
name: Build - ${{ matrix.configuration }}

strategy:
matrix:
configuration: [ Debug, Release ]

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
Expand Down
20 changes: 13 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Create release

# On push to master branch. i.e. when we merge a PR.
on:
push:
Expand All @@ -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

vinnie-fialok marked this conversation as resolved.
Show resolved Hide resolved
dotnet-version: '6.0.x'

# Finds the latest release and increases the version
- name: Get next version
uses: reecetech/version-increment@2023.9.3

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How can we ensure that we start with version 4.0.18 in nuget.org?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For this, we'd likely need a seperate github action where we can specify the version with a tag. However, I have tested that it does pick out the next version as 4.0.18, and merging to master should result in version 4.0.18.

Ref: https://github.com/WiseTechGlobal/Blazor.Diagrams/actions/runs/9801236216/job/27064259461

Specifically in the Get next version step we have The new version is 4.0.18-pre.9c30c92

Copy link

@LeonamAnjos LeonamAnjos Jul 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! Here, it sorts the tags we have on GitHub and picks the last one. That is why it works out of the box.

Expand Down Expand Up @@ -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
17 changes: 12 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 | |
| ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
Expand Down Expand Up @@ -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
Loading