Skip to content

Commit

Permalink
Draft a release in any case, just don't publish it.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielcweber committed Jan 18, 2024
1 parent 7d4ed8f commit 21d7490
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/pack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,11 @@ jobs:
--no-symbols
--skip-duplicate

release:
if: ${{ needs.pack.outputs.isPreviewRelease == 'false' }}
draft-release:
needs: [ pack ]
runs-on: ubuntu-latest

steps:
- uses: actions/download-artifact@v2
with:
name: NuGetPackages

- name: Draft release
id: create_release
Expand All @@ -84,7 +80,17 @@ jobs:
commitish: ${{ github.ref }}
env:
GITHUB_TOKEN: ${{ secrets.CREATE_RELEASE_PAT }}

release:
if: ${{ needs.pack.outputs.isPreviewRelease == 'false' }}
needs: [ draft-release: ]
runs-on: ubuntu-latest

steps:
- uses: actions/download-artifact@v2
with:
name: NuGetPackages

- uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
Expand Down

0 comments on commit 21d7490

Please sign in to comment.