Skip to content

Commit

Permalink
Fixed CD pipeline (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
sandrohanea authored Oct 31, 2024
1 parent 81138d1 commit a0ea763
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/push-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
id: get-version
run: |
$version = (Get-ChildItem -Path nupkgs\*.nupkg | Select-Object -First 1).BaseName -replace '.*\.(\d+\.\d+\.\d+(-[a-zA-Z0-9]+)?)', '$1'
git tag -a "$version" -m "Release version $version"
git config user.email "sandrohanea@users.noreply.github.com"
git config user.name "Sandro Hanea (auto)"
git tag -a "$version" -m "Release version $version"
git push --tags
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ on:
description: 'Preview Suffix'
required: false
default: 'preview'
PushToNuget:
description: 'Push to Nuget'
required: true
type: boolean
default: true
env:
IS_PREVIEW: ${{ inputs.IsPreview }}
PREVIEW_SUFFIX: ${{ inputs.PreviewSuffix }}
Expand Down Expand Up @@ -84,6 +89,7 @@ jobs:
PreviewSuffix: ${{ inputs.PreviewSuffix }}

push-nuget:
if: ${{ inputs.PushToNuget }}
needs:
- pack-all
uses: ./.github/workflows/push-all.yml
Expand Down

0 comments on commit a0ea763

Please sign in to comment.