From a88aa6cb65f6d241750a58e587b945cc79f353b8 Mon Sep 17 00:00:00 2001 From: Jason Marechal Date: Fri, 8 Sep 2023 09:35:02 +0200 Subject: [PATCH] Handle pre-release (-rcX) --- .github/workflows/release.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 34fa2d892..a805d093c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,5 +11,18 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + - run: | + echo ${{ github.ref }} + - if: ${{ contains(github.ref, '-rc') }} + run: | + echo "ok" + - if: ${{ contains(github.ref, '-rc') && true || false }} + run: | + echo "ok" + - if: ${{ ! contains(github.ref, '-rc') }} + run: | + echo "no" - name: Release - uses: softprops/action-gh-release@v1 \ No newline at end of file + uses: softprops/action-gh-release@v1 + with: + prerelease: ${{ contains(github.ref, '-rc') }} \ No newline at end of file