From d21b7b40069f14aa6935f8d77a055164780726e4 Mon Sep 17 00:00:00 2001 From: Lukas Gravley Date: Thu, 11 Mar 2021 13:24:12 -0600 Subject: [PATCH] Publish (#1359) * change it up * change it up --- .github/workflows/deploy-RELEASE.yml | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/.github/workflows/deploy-RELEASE.yml b/.github/workflows/deploy-RELEASE.yml index 5ec3b4c3..ca2377e6 100644 --- a/.github/workflows/deploy-RELEASE.yml +++ b/.github/workflows/deploy-RELEASE.yml @@ -206,19 +206,15 @@ jobs: - name: Create Release if: success() id: create_release - uses: actions/create-release@v1 - env: - # This token is provided by Actions, - # you do not need to create your own token - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - commitish: ${{ env.PR_REF }} - tag_name: ${{ env.RELEASE_VERSION }} - release_name: Release ${{ env.RELEASE_VERSION }} - body: | - ${{ github.event.issue.body }} - draft: false - prerelease: false + run: | + curl -X POST \ + --url https://api.github.com/repos/${{ github.repository }}/releases \ + -H 'Accept: application/vnd.github.v3+json' \ + -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ + -H 'Content-Type: application/json' \ + --data "{ \"tag_name\": \"${{ env.RELEASE_VERSION }}\", \"target_commitish\": \"${{ env.PR_REF }}\", \ + \"name\": \"Release ${{ env.RELEASE_VERSION }}\", \"draft\": false, \"prerelease\": false, \ + \"repository_action_release_attributes\": { \"published_on_marketplace\": true }}" ##################################################### # Create the Required status check for Stack Linter #