From: Debayan Sutradhar Date: Tue, 22 Jun 2021 11:53:41 +0530 Subject: Add release body and pre-release switch --- Add release body and pre-release switch --- --- 'a/.github/workflows/release.yml' +++ b/.github/workflows/release.yml @@ -50,6 +50,18 @@ jobs: tag_name: ${{ env.VERSION }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Create relase body + run: | + touch body.md + if [[ $VERSION == *"SNAPSHOT"* ]]; then + echo "**These are snapshot builds. Untested and not recommended for daily use.**" >> body.md + fi + + if [[ $VERSION == *"EA"* ]]; then + echo "PRE_RELEASE=true" >> $GITHUB_ENV + else + echo "PRE_RELEASE=false" >> $GITHUB_ENV + fi - name: Release nightly build uses: ncipollo/release-action@v1.8.6 with: @@ -58,3 +70,5 @@ jobs: artifacts: target/install/* token: ${{ secrets.GITHUB_TOKEN }} tag: ${{ env.VERSION }} + bodyFile: "body.md" + prerelease: ${{ env.PRE_RELEASE }}