From 68d4a07c1e0bcd249b9a491dda0aac25a574a2b3 Mon Sep 17 00:00:00 2001 From: James Date: Fri, 14 Nov 2025 21:46:48 +0100 Subject: [PATCH 1/2] Improving CICD --- .github/workflows/ci.yml | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 23e41e6..7e3988b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -182,16 +182,27 @@ jobs: echo "package_path=$pkg" >> $GITHUB_OUTPUT echo "package_name=$(basename $pkg)" >> $GITHUB_OUTPUT + - name: Publish to NuGet + env: + NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} + run: | + if [ -z "$NUGET_API_KEY" ]; then + echo "NUGET_API_KEY not set - skipping publish" + exit 0 + fi + dotnet nuget push ./nupkgs/*.nupkg -k "$NUGET_API_KEY" -s https://api.nuget.org/v3/index.json --skip-duplicate + - name: Create GitHub Release for tag id: create_release uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: tag_name: ${{ steps.vars.outputs.tag }} release_name: ${{ steps.vars.outputs.tag }} body: Release for tag ${{ steps.vars.outputs.tag }} draft: false prerelease: false - token: ${{ secrets.GITHUB_TOKEN }} - name: Upload nupkg to Release uses: actions/upload-release-asset@v1 @@ -201,12 +212,3 @@ jobs: asset_name: ${{ steps.find_pkg.outputs.package_name }} asset_content_type: application/octet-stream - - name: Publish to NuGet - env: - NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} - run: | - if [ -z "$NUGET_API_KEY" ]; then - echo "NUGET_API_KEY not set - skipping publish" - exit 0 - fi - dotnet nuget push ./nupkgs/*.nupkg -k "$NUGET_API_KEY" -s https://api.nuget.org/v3/index.json --skip-duplicate From d3daace695838d3e867054d59c03ea009495bfad Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 14 Nov 2025 20:48:12 +0000 Subject: [PATCH 2/2] ci: bump version to 0.0.7 [skip ci] --- TenJames.CompMap/TenJames.CompMap/TenJames.CompMap.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TenJames.CompMap/TenJames.CompMap/TenJames.CompMap.csproj b/TenJames.CompMap/TenJames.CompMap/TenJames.CompMap.csproj index 81ec64f..b19fbaf 100644 --- a/TenJames.CompMap/TenJames.CompMap/TenJames.CompMap.csproj +++ b/TenJames.CompMap/TenJames.CompMap/TenJames.CompMap.csproj @@ -14,7 +14,7 @@ - 0.0.6 + 0.0.7 Compiletime Mapper Map your object on compile time https://github.com/Ten-James/CompMap