Skip to content

Commit

Permalink
Draft release
Browse files Browse the repository at this point in the history
  • Loading branch information
cb-martinsmith committed Aug 21, 2024
1 parent 5fac734 commit a68f8c1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,19 @@ jobs:
id: should_release
run: |
should_release=false
release_is_draft=false
if [ "${{ github.ref }}" == 'refs/heads/main' ]
then
should_release=true
elif [[ "${{ github.ref }}" == refs/heads/${{ env.BRANCH_PREFIX_RELEASE_CANDIDATE }}* ]]
then
should_release=true
release_is_draft=true
fi
echo "should_release=${should_release}" >> $GITHUB_ENV
echo "release_is_draft=${release_is_draft}" >> $GITHUB_ENV
- name: Determine package publishing
id: should_publish
Expand Down Expand Up @@ -111,6 +114,7 @@ jobs:
package_version: ${{ env.package_version }}
should_publish: ${{ env.should_publish }}
should_release: ${{ env.should_release }}
release_is_draft: ${{ env.release_is_draft }}

##########################################################
## Build DotNet projects
Expand Down Expand Up @@ -224,6 +228,8 @@ jobs:
tag: v${{ needs.setup.outputs.assembly_version }}
name: Release ${{ needs.setup.outputs.assembly_version }}
body: ${{ steps.build_changelog.outputs.changelog }}
draft: ${{ needs.setup.outputs.release_is_draft }}
removeArtifacts: true
artifacts: '**/*.nupkg'

- name: Tag git
Expand Down

0 comments on commit a68f8c1

Please sign in to comment.