Skip to content

Commit 2271cae

Browse files
authored
Move to auto draft release after successful publish (#186)
1 parent 4c619f6 commit 2271cae

File tree

1 file changed

+9
-14
lines changed

1 file changed

+9
-14
lines changed

.github/workflows/publish.yml

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,16 @@ jobs:
2424

2525
publish-schema:
2626
runs-on: ubuntu-latest
27+
needs: [publish-rust]
2728
permissions:
2829
contents: write
2930
steps:
3031
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
31-
- name: Create release if missing
32-
env:
33-
GH_TOKEN: ${{ github.token }}
34-
run: |
35-
tag="${GITHUB_REF#refs/tags/}"
36-
if ! gh release view "$tag" >/dev/null 2>&1; then
37-
gh release create "$tag" --title "$tag"
38-
fi
39-
- name: Upload schema assets
40-
env:
41-
GH_TOKEN: ${{ github.token }}
42-
run: |
43-
tag="${GITHUB_REF#refs/tags/}"
44-
gh release upload "$tag" schema/schema.json schema/meta.json --clobber
32+
- name: Create Release
33+
id: create_release
34+
uses: softprops/action-gh-release@6da8fa9354ddfdc4aeace5fc48d7f679b5214090
35+
with:
36+
draft: true
37+
fail_on_unmatched_files: true
38+
files: |
39+
schema/**/*.json

0 commit comments

Comments
 (0)