Skip to content

Commit

Permalink
Refactor CD pipeline to remove unnecessary tag fetching step
Browse files Browse the repository at this point in the history
  • Loading branch information
hootanht committed Sep 12, 2024
1 parent b8a7dc2 commit feb16ef
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 16 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,6 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4

# Fetch changes from the previous version
- name: Fetch changes from previous version
id: fetch_changes
run: |
$PREV_TAG = git describe --tags --abbrev=0 HEAD^
echo "PREV_TAG=$PREV_TAG" | Out-File -FilePath $env:GITHUB_ENV -Append
$CHANGES = git log $PREV_TAG..HEAD --pretty=format:"%h - %s"
echo "CHANGES=$CHANGES" | Out-File -FilePath $env:GITHUB_ENV -Append
# Create the GitHub release
- name: Create GitHub Release
id: create_release
Expand All @@ -142,6 +133,6 @@ jobs:
release_name: Release ${{ github.ref }}
body: |
## Changes in this Release
${{ env.CHANGES }}
${{ steps.create-release-notes.outputs.release-notes }}
draft: false
prerelease: false
4 changes: 2 additions & 2 deletions PersianDate/PersianDate.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<PackageReleaseNotes>Add support for .Net 8.0</PackageReleaseNotes>
<NeutralLanguage>en-US</NeutralLanguage>
<PackageProjectUrl>https://github.com/hootanht/PrsianDate</PackageProjectUrl>
<Version>1.0.8</Version>
<Version>1.2.0</Version>
<RepositoryUrl>https://github.com/hootanht/PersianDate</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<ImplicitUsings>disable</ImplicitUsings>
Expand All @@ -32,7 +32,7 @@
</PropertyGroup>

<PropertyGroup>
<VersionPrefix>1.0.8</VersionPrefix>
<VersionPrefix>1.2.0</VersionPrefix>
<VersionSuffix>ci</VersionSuffix>
</PropertyGroup>

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ Persian Data Library is a library that can be convert **Gregorian** (Milady) yea

| Target | Branch | Version |
| ------ | ------ | ------ |
| Github | master | v1.0.8 |
| Github | master | v1.2.0 |


## Persian Date Public Version
| Target | Branch | Version | Download link | Total downloads | CI Build Status | CD Build Status |
| ------ | ------ | ------ | ------ | ------ | ------ | ------ |
| Nuget | master | v1.0.8 | [![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) | [![Build Status](https://github.com/hootanht/PersianDate/actions/workflows/CI.yml/badge.svg?branch=master)](https://github.com/hootanht/PersianDate/actions) | [![Build Status](https://github.com/hootanht/PersianDate/actions/workflows/CD.yml/badge.svg?branch=master)](https://github.com/hootanht/PersianDate/actions) |
| Release | master | v1.0.8 | [![Build Status](https://github.com/hootanht/PersianDate/actions/workflows/CI.yml/badge.svg?branch=master)](https://github.com/hootanht/PersianDate/actions) | | [![Build Status](https://github.com/hootanht/PersianDate/actions/workflows/CI.yml/badge.svg?branch=master)](https://github.com/hootanht/PersianDate/actions) | [![Build Status](https://github.com/hootanht/PersianDate/actions/workflows/CD.yml/badge.svg?branch=master)](https://github.com/hootanht/PersianDate/actions) |
| Nuget | master | v1.2.0 | [![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) | [![Build Status](https://github.com/hootanht/PersianDate/actions/workflows/CI.yml/badge.svg?branch=master)](https://github.com/hootanht/PersianDate/actions) | [![Build Status](https://github.com/hootanht/PersianDate/actions/workflows/CD.yml/badge.svg?branch=master)](https://github.com/hootanht/PersianDate/actions) |
| Release | master | v1.2.0 | [![Build Status](https://github.com/hootanht/PersianDate/actions/workflows/CI.yml/badge.svg?branch=master)](https://github.com/hootanht/PersianDate/actions) | | [![Build Status](https://github.com/hootanht/PersianDate/actions/workflows/CI.yml/badge.svg?branch=master)](https://github.com/hootanht/PersianDate/actions) | [![Build Status](https://github.com/hootanht/PersianDate/actions/workflows/CD.yml/badge.svg?branch=master)](https://github.com/hootanht/PersianDate/actions) |

## Cross Platform

Expand Down Expand Up @@ -59,7 +59,7 @@ Extension Method For DateTime
```

## Version changes
Version 1.0.8
Version 1.2.0

-Add support for .Net 8.0

Expand Down

0 comments on commit feb16ef

Please sign in to comment.