From 3cf3f66e2e95ea4c5055f04cd0de48e84a809909 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?U=C4=9Fur=20Aslan?= <20225811+uguraslan@users.noreply.github.com> Date: Mon, 18 Sep 2023 18:23:25 +0200 Subject: [PATCH] Setting up GH actions release (#4) * v0.3.0 --- .github/workflows/release-extension.yml | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release-extension.yml b/.github/workflows/release-extension.yml index 1ef1c81..c9435f6 100644 --- a/.github/workflows/release-extension.yml +++ b/.github/workflows/release-extension.yml @@ -40,16 +40,9 @@ jobs: - name: Rename VSIX run: mv *.vsix ${{ env.EXTENSION_NAME }}.v${{ env.EXTENSION_VERSION }}.vsix - - name: Capture PR Merge Message - id: capture_pr_msg - run: | - merge_msg=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ - "https://api.github.com/repos/${{ github.repository }}/pulls?state=closed&sort=updated&direction=desc&per_page=1" | \ - jq -r '.[0].title + "\n\n" + .[0].body' | base64) - echo "PR_MERGE_MSG_BASE64=$merge_msg" >> $GITHUB_ENV - - name: Create GitHub Release and Upload VSIX + # Create GitHub Pre Release and Upload VSIX + - name: Create GitHub Pre Release and Upload VSIX run: | gh auth login --with-token <<< "${{ secrets.GITHUB_TOKEN }}" - decoded_merge_msg=$(echo "${{ env.PR_MERGE_MSG_BASE64 }}" | base64 --decode) - gh release create v${{ env.EXTENSION_VERSION }} ./${{ env.EXTENSION_NAME }}.v${{ env.EXTENSION_VERSION }}.vsix -t "bolt-vscode v${{ env.EXTENSION_VERSION }}" -n "$decoded_merge_msg" + gh release create v${{ env.EXTENSION_VERSION }} ./${{ env.EXTENSION_NAME }}.v${{ env.EXTENSION_VERSION }}.vsix --prerelease -t "bolt-vscode v${{ env.EXTENSION_VERSION }}" -n "Version ${{ env.EXTENSION_VERSION }} of ${{ env.EXTENSION_NAME }}"