Skip to content

Commit

Permalink
Publish release after attaching asset
Browse files Browse the repository at this point in the history
  • Loading branch information
ockham committed Jan 11, 2021
1 parent f72bea1 commit 11c25c7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/build-plugin-zip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
CHANGELOG_REGEX="/=\s[0-9]+\.[0-9]+\.[0-9]+(-rc\.[0-9]+)?\s=/"
awk -i inplace "$CHANGELOG_REGEX"'{p++;next} p==2{exit} p>=1' changelog.txt
- name: Create Release
- name: Create Release Draft
id: create_release
uses: actions/create-release@v1
env:
Expand All @@ -91,3 +91,11 @@ jobs:
asset_path: ./gutenberg.zip
asset_name: gutenberg.zip
asset_content_type: application/zip

- name: Publish Release
run: |
curl \
-X PATCH \
-H "Accept: application/vnd.github.v3+json" \
https://github.com/gitapi/repos/${{ github.repository }}/releases/${{ steps.create_release.outputs.id }} \
-d '{"draft":false}'

0 comments on commit 11c25c7

Please sign in to comment.