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