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 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