diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml
index 527d3cb..2856a74 100644
--- a/.github/workflows/cd.yml
+++ b/.github/workflows/cd.yml
@@ -12,6 +12,7 @@ jobs:
permissions:
id-token: write
contents: write
+ packages: write
actions: read
env:
@@ -51,17 +52,6 @@ jobs:
echo "CURRENT_VERSION=$VERSION" >> $GITHUB_ENV
shell: bash
- - name: Check if package (${{ env.PACKAGE_CURRENCIES_ID }}) version already exists on NuGet.org
- id: check_nuget
- run: |
- PACKAGE_CURRENCIES_ID_LOWER=$(echo "${{ env.PACKAGE_CURRENCIES_ID }}" | tr '[:upper:]' '[:lower:]')
- STATUS_CODE=$(curl -s -o /dev/null -I -w "%{http_code}" "https://api.nuget.org/v3-flatcontainer/${PACKAGE_CURRENCIES_ID_LOWER}/${{ env.CURRENT_VERSION }}/index.json")
- if [ "$STATUS_CODE" -eq 200 ]; then
- echo "Error: Version ${{ env.CURRENT_VERSION }} already exists on NuGet.org!"
- exit 1
- fi
- shell: bash
-
- name: Restore dependencies
run: dotnet restore ${{ env.SOLUTION_NAME }}
@@ -128,4 +118,12 @@ jobs:
dotnet nuget push "${{ env.OUTPUT_NUGET_DIR }}/${{ env.PACKAGE_CURRENCIES_ID }}.${{ env.CURRENT_VERSION }}.nupkg" \
--api-key ${{steps.login.outputs.NUGET_API_KEY}} \
--source ${{ env.NUGET_SOURCE_URL }}
- shell: bash
\ No newline at end of file
+ --skip-duplicate
+ shell: bash
+
+ - name: Publish package (HawkN.Iso.Currencies) to GitHub packages
+ run: |
+ dotnet nuget push "${{ env.OUTPUT_NUGET_DIR }}/${{ env.PACKAGE_CURRENCIES_ID }}.${{ env.CURRENT_VERSION }}.nupkg" \
+ --source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" \
+ --api-key ${{ secrets.GITHUB_TOKEN }} \
+ --skip-duplicate
\ No newline at end of file
diff --git a/src/packages/HawkN.Iso.Currencies.Generators/Constants.cs b/src/packages/HawkN.Iso.Currencies.Generators/Constants.cs
index 90c5bec..5aa60c8 100644
--- a/src/packages/HawkN.Iso.Currencies.Generators/Constants.cs
+++ b/src/packages/HawkN.Iso.Currencies.Generators/Constants.cs
@@ -9,7 +9,7 @@ internal static class Constants
public const string ErrorPrefixName = "CURRENCY_";
public static readonly string[] ExtendedSourceData =
[
- "Release: release-48",
+ "Release: release-48.1.0",
"CLDR URL: https://github.com/unicode-org/cldr",
"Currency codes URL: https://raw.githubusercontent.com/datasets/currency-codes/main/data/codes-all.csv"
];
diff --git a/src/packages/HawkN.Iso.Currencies.Generators/Content/SupplementalData.xml b/src/packages/HawkN.Iso.Currencies.Generators/Content/SupplementalData.xml
index 25684d3..dd35e2a 100644
--- a/src/packages/HawkN.Iso.Currencies.Generators/Content/SupplementalData.xml
+++ b/src/packages/HawkN.Iso.Currencies.Generators/Content/SupplementalData.xml
@@ -57,7 +57,7 @@ For terms of use, see https://www.unicode.org/copyright.html
-
+
diff --git a/src/packages/HawkN.Iso.Currencies.Generators/HawkN.Iso.Currencies.Generators.csproj b/src/packages/HawkN.Iso.Currencies.Generators/HawkN.Iso.Currencies.Generators.csproj
index 56f5ad8..9f2449a 100644
--- a/src/packages/HawkN.Iso.Currencies.Generators/HawkN.Iso.Currencies.Generators.csproj
+++ b/src/packages/HawkN.Iso.Currencies.Generators/HawkN.Iso.Currencies.Generators.csproj
@@ -22,7 +22,7 @@
false
false
false
- release-48
+ release-48-1
https://raw.githubusercontent.com/unicode-org/cldr/$(CldrVersion)/common/main/en.xml
https://raw.githubusercontent.com/unicode-org/cldr/$(CldrVersion)/common/supplemental/supplementalData.xml
https://raw.githubusercontent.com/datasets/currency-codes/main/data/codes-all.csv
diff --git a/src/packages/HawkN.Iso.Currencies.Generators/README.md b/src/packages/HawkN.Iso.Currencies.Generators/README.md
index 0ad7db5..2c8ab65 100644
--- a/src/packages/HawkN.Iso.Currencies.Generators/README.md
+++ b/src/packages/HawkN.Iso.Currencies.Generators/README.md
@@ -13,7 +13,7 @@ The **HawkN.Iso.Currencies** project uses a Source Generator to generate currenc
4. Rebuild the solution.
5. Review the generated files:
- `CurrencyCode.cs`
-- `LocalDatabase.cs`
+- `LocalCurrencyDatabase.cs`
6. After verification, disable generation:
```json lines
false
@@ -55,7 +55,7 @@ Replace `` with the desired CLDR release version (for example: `release
3. Rebuild the project.
4. Verify that:
- CLDR XML files were downloaded
-- `CurrencyCode.cs` and `LocalCurrecnyDatabase.cs` were regenerated
+- `CurrencyCode.cs` and `LocalCurrencyDatabase.cs` were regenerated
5. Commit the generated changes to the repository.
6. Disable the flags again:
```json lines
diff --git a/src/packages/HawkN.Iso.Currencies/CurrencyCode.cs b/src/packages/HawkN.Iso.Currencies/CurrencyCode.cs
index 4d54b17..7e59cd4 100644
--- a/src/packages/HawkN.Iso.Currencies/CurrencyCode.cs
+++ b/src/packages/HawkN.Iso.Currencies/CurrencyCode.cs
@@ -1,6 +1,6 @@
//
// This file was generated by HawkN.Iso.Currencies.Generators source generator
-// Release: release-48
+// Release: release-48.1.0
// CLDR URL: https://github.com/unicode-org/cldr
// Currency codes URL: https://raw.githubusercontent.com/datasets/currency-codes/main/data/codes-all.csv
// Do not modify this file manually.
@@ -10,7 +10,7 @@ namespace HawkN.Iso.Currencies
{
///
/// Currency codes ISO4217
- /// Last published at 2026-01-04.
+ /// Last published at 2026-01-16.
///
public enum CurrencyCode
{
diff --git a/src/packages/HawkN.Iso.Currencies/HawkN.Iso.Currencies.csproj b/src/packages/HawkN.Iso.Currencies/HawkN.Iso.Currencies.csproj
index 9c7e013..0bc28b4 100644
--- a/src/packages/HawkN.Iso.Currencies/HawkN.Iso.Currencies.csproj
+++ b/src/packages/HawkN.Iso.Currencies/HawkN.Iso.Currencies.csproj
@@ -16,7 +16,7 @@
false
false
true
- 8.0.0
+ 8.0.1
false
$(GenerateCurrencyFiles)
diff --git a/src/packages/HawkN.Iso.Currencies/LocalCurrencyDatabase.cs b/src/packages/HawkN.Iso.Currencies/LocalCurrencyDatabase.cs
index 8e15212..8bcbcbb 100644
--- a/src/packages/HawkN.Iso.Currencies/LocalCurrencyDatabase.cs
+++ b/src/packages/HawkN.Iso.Currencies/LocalCurrencyDatabase.cs
@@ -1,6 +1,6 @@
//
// This file was generated by HawkN.Iso.Currencies.Generators source generator
-// Release: release-48
+// Release: release-48.1.0
// CLDR URL: https://github.com/unicode-org/cldr
// Currency codes URL: https://raw.githubusercontent.com/datasets/currency-codes/main/data/codes-all.csv
// Do not modify this file manually.
@@ -16,7 +16,7 @@ internal static class LocalCurrencyDatabase
{
///
/// Actual currency information for codes ISO4217
- /// Last published at 2026-01-04.
+ /// Last published at 2026-01-16.
///
public static readonly ImmutableArray ActualCurrencies = ImmutableArray.Create(new Models.Currency[]
{
diff --git a/src/packages/HawkN.Iso.Currencies/Package/Content/README.md b/src/packages/HawkN.Iso.Currencies/Package/Content/README.md
index 0e30691..91e3074 100644
--- a/src/packages/HawkN.Iso.Currencies/Package/Content/README.md
+++ b/src/packages/HawkN.Iso.Currencies/Package/Content/README.md
@@ -132,7 +132,7 @@ var validResult = currencyService.TryValidate(CurrencyCode.AFN, out var validate
## Supported currencies
See the currency list with the [link](https://github.com/HawkN113/HawkN.Iso.Currencies?tab=readme-ov-file#supported-currencies)
-Last updated at `01.01.2026`
+Last updated at `16.01.2026`
---