Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: Release

# GitHub blocks asset uploads to a release once it's published, so this
# workflow runs while the release is still a draft, then publishes it.
on:
release:
types: [ published ]
types: [ created ]
workflow_dispatch:
inputs:
tag:
Expand Down Expand Up @@ -53,6 +55,13 @@ jobs:
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.version.outputs.tag }}
draft: true
files: |
src/UnionTypes/bin/Release/*.nupkg
src/SourceGenerators.Package/bin/Release/*.nupkg

- name: Publish release
if: github.event_name == 'release' && github.event.release.draft == true
env:
GH_TOKEN: ${{ github.token }}
run: gh release edit "${{ steps.version.outputs.tag }}" --draft=false --repo "${{ github.repository }}"
Loading