From dbd727208a8336cfb9d8ae4d68d2744a7708f814 Mon Sep 17 00:00:00 2001 From: "Mike A. Trethewey" Date: Thu, 27 Feb 2020 02:23:03 -0800 Subject: [PATCH] Pre/Release --- .github/workflows/ci.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 77b2f49c..974f2c0a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -202,6 +202,19 @@ jobs: body="${body//$'\n'/'%0A'}" body="${body//$'\r'/'%0D'}" echo "::set-output name=body::$body" + # create a prerelease + - name: Create a PreRelease + id: create_prerelease + uses: actions/create-release@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: v${{ steps.debug_info.outputs.github_tag }} + release_name: ALttPDoorRandomizer v${{ steps.debug_info.outputs.github_tag }} + body: ${{ steps.release_notes.outputs.body }} + draft: true + prerelease: true + if: contains(${{ steps.debug_info.outputs.github_tag }},'p.') or contains(${{ steps.debug_info.outputs.github_tag }}, 'pre.') # create a release - name: Create a Release id: create_release @@ -212,8 +225,9 @@ jobs: tag_name: v${{ steps.debug_info.outputs.github_tag }} release_name: ALttPDoorRandomizer v${{ steps.debug_info.outputs.github_tag }} body: ${{ steps.release_notes.outputs.body }} - draft: contains(${{ steps.debug_info.outputs.github_tag }},'p.') or contains(${{ steps.debug_info.outputs.github_tag }},'pre.') - prerelease: contains(${{ steps.debug_info.outputs.github_tag }},'p.') or contains(${{ steps.debug_info.outputs.github_tag }},'pre.') + draft: true + prerelease: false + if: not contains(${{ steps.debug_info.outputs.github_tag }},'p.') and not contains(${{ steps.debug_info.outputs.github_tag }}, 'pre.') # upload linux archive asset - name: Upload Linux Archive Asset id: upload-linux-asset