Skip to content

Commit

Permalink
Merge pull request #4 from hootanht/update-version
Browse files Browse the repository at this point in the history
Update version to 1.0.5 and related docs
  • Loading branch information
hootanht authored Sep 12, 2024
2 parents 204c936 + e454c75 commit e7966f8
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 64 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: CI/CD

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:
runs-on: windows-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.x'
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.0.x'
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.0.x'

- name: Restore dependencies
run: dotnet restore

- name: Build solution
run: dotnet build --configuration Release --no-restore

- name: Run tests
run: dotnet test --no-restore --verbosity normal

- name: Publish NuGet package
run: dotnet pack --configuration Release --no-restore
6 changes: 4 additions & 2 deletions PrsianDate/PersianDate.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,16 @@
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageId>PersianDateShamsi</PackageId>
<PackageTags>persian,persian calender,persian date,shamsi,jalali</PackageTags>
<PackageReleaseNotes>Change .Net Standard 2.0 to .NET 7.0</PackageReleaseNotes>
<PackageReleaseNotes>Add support for .Net 8.0</PackageReleaseNotes>
<NeutralLanguage>en-US</NeutralLanguage>
<PackageProjectUrl>https://github.com/hootanht/PrsianDate</PackageProjectUrl>
<Version>1.0.4</Version>
<Version>1.0.5</Version>
<RepositoryUrl>https://github.com/hootanht/PrsianDate</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>enable</Nullable>
<PackageSource>https://api.nuget.org/v3/index.json</PackageSource>
<PublishProfile>nuget</PublishProfile>
</PropertyGroup>

<ItemGroup>
Expand Down
18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,16 @@ Persian Data Library is a library that can be convert **Gregorian** (Milady) yea
## Persian Date Public Version
| Target | Branch | Version | Download link | Total downloads |
| ------ | ------ | ------ | ------ | ------ |
| Nuget | master | v1.0.4 | [![NuGet](https://img.shields.io/nuget/v/PersianDateShamsi.svg)](https://www.nuget.org/packages/PersianDateShamsi) | [![NuGet downloads](https://img.shields.io/nuget/dt/PersianDateShamsi.svg)](https://www.nuget.org/packages/PersianDateShamsi) |
| Release | master | v1.0.4 | [![Build Status](https://dev.azure.com/hootanht/PersianDate/_apis/build/status/PersianDate?branchName=master)](https://hootanht.visualstudio.com/PersianDate) | |
| Nuget | master | v1.0.5 | [![NuGet](https://img.shields.io/nuget/v/PersianDateShamsi.svg)](https://www.nuget.org/packages/PersianDateShamsi) | [![NuGet downloads](https://img.shields.io/nuget/dt/PersianDateShamsi.svg)](https://www.nuget.org/packages/PersianDateShamsi) |
| Release | master | v1.0.5 | [![Build Status](https://github.com/hootanht/PersianDate/actions/workflows/ci-cd.yml/badge.svg)](https://github.com/hootanht/PersianDate/actions) | |

## Cross Platform

| Platform | Supported Version |
| ------ | ------ |
| .NET | 5.0 Or Higher|
| .NET | 5.0 |
| .NET | 6.0 |
| .NET | 7.0 |
| .NET | 8.0 |

## Code Example
Expand Down Expand Up @@ -60,6 +62,10 @@ Extension Method For DateTime
```

## Version changes
Version 1.0.5

-Add support for .Net 8.0

Version 1.0.4

-Add support for .Net 5.0 and 6.0
Expand All @@ -76,13 +82,9 @@ Version 1.0.1

-Change .Net Standard 2.1 To 2.0 To Support More Platforms

Version 1.0.5

-Add support for .Net 8.0

## CI Pipeline

The CI pipeline is defined in `azure-pipelines.yml` and uses `windows-latest` as the VM image. It restores NuGet packages, builds the solution, and runs tests.
The CI pipeline is defined in `.github/workflows/ci-cd.yml` and uses `windows-latest` as the VM image. It restores NuGet packages, builds the solution, runs tests, and publishes the NuGet package. The pipeline installs .NET versions 5.0.x, 6.0.x, 7.0.x, and 8.0.x to ensure compatibility with all targeted frameworks.
## Developer [![Twitter Follow](https://img.shields.io/twitter/follow/hootanht?style=social)](https://twitter.com/hootanht)

| Name | Github | Email | Telegram |
Expand Down
54 changes: 0 additions & 54 deletions azure-pipelines.yml

This file was deleted.

0 comments on commit e7966f8

Please sign in to comment.