From dafe5fd95fd4e186d7afd187806b0c5d8dfd24c5 Mon Sep 17 00:00:00 2001 From: Christian Giese Date: Wed, 5 Apr 2023 20:19:28 +0000 Subject: [PATCH] fix GitHub release action --- .github/workflows/release.yml | 25 ++++--------------------- 1 file changed, 4 insertions(+), 21 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ea05cc22..b5413000 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,28 +21,11 @@ jobs: echo "SOURCE_BRANCH=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT echo "SOURCE_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT - - name: "Create Release" - uses: "actions/github-script@v6" + - uses: actions/checkout@v3 + - uses: ncipollo/release-action@v1 with: - github-token: "${{ secrets.GITHUB_TOKEN }}" - script: | - try { - const response = await github.rest.repos.createRelease({ - draft: false, - generate_release_notes: true, - name: ${{ steps.ref_name.outputs.SOURCE_TAG }}, - owner: context.repo.owner, - prerelease: false, - repo: context.repo.repo, - tag_name: ${{ steps.ref_name.outputs.SOURCE_TAG }}, - body: RtBrick BNG Blaster Version ${{ steps.ref_name.outputs.SOURCE_TAG }}, - }); - - core.exportVariable('RELEASE_ID', response.data.id); - core.exportVariable('RELEASE_UPLOAD_URL', response.data.upload_url); - } catch (error) { - core.setFailed(error.message); - } + tag: ${{ steps.ref_name.outputs.SOURCE_TAG }} + bodyFile: "RtBrick BNG Blaster Version ${{ steps.ref_name.outputs.SOURCE_TAG }}" build: name: Build Release ${{matrix.os}}