Changes to pre release condition
@@ -34,25 +34,24 @@ jobs:
- name: Extract release notes
id: extract-release-notes
uses: ffurrer2/extract-release-notes@v1
- - name: Create pre-release
- if: env.RC == 'rc'
- uses: actions/create-release@v1
- with:
- tag_name: v${{ env.RELEASE_VERSION }}
- release_name: Release v${{ env.RELEASE_VERSION }}
- draft: false
- prerelease: true
- body: ${{ steps.extract-release-notes.outputs.release_notes }}
- env:
- GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
+ # - name: Create pre-release
+ # if: env.RC == 'rc'
+ # uses: actions/create-release@v1
+ # with:
+ # tag_name: v${{ env.RELEASE_VERSION }}
+ # release_name: Release v${{ env.RELEASE_VERSION }}
+ # draft: false
+ # prerelease: true
+ # body: ${{ steps.extract-release-notes.outputs.release_notes }}
+ # env:
+ # GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
- name: Create release
- if: env.RC != 'rc'
uses: actions/create-release@v1
with:
tag_name: v${{ env.RELEASE_VERSION }}
release_name: Release v${{ env.RELEASE_VERSION }}
draft: false
- prerelease: false
+ prerelease: ${{env.RC == 'rc'}}
body: ${{ steps.extract-release-notes.outputs.release_notes }}
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
