Skip to content

Commit

Permalink
[CI] Add ability to use pre-releases
Browse files Browse the repository at this point in the history
  • Loading branch information
katyukha committed Sep 13, 2024
1 parent 21de7c9 commit 0edc5b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
push:
tags:
- 'v*.*.*'
- 'v*.*.*-RC*'
- 'v*.*.*-*'

env:
ODOOD_DLANG_COMPILER: ldc-1.39.0
Expand Down Expand Up @@ -90,10 +90,10 @@ jobs:
- name: 'Show directory structure'
run: ls -R

- name: Check RC Release
- name: Check RC/alpha Release
id: check-rc-release
run: |
if [[ ${{ github.event.ref }} =~ ^refs/tags/v[0-9]+\.[0-9]+\.[0-9]+-(rc|RC)[0-9]+$ ]]; then
if [[ ${{ github.event.ref }} =~ ^refs/tags/v[0-9]+\.[0-9]+\.[0-9]+-(rc|RC|[0-9a-zA-Z\.\-]+)[0-9]+$ ]]; then
echo "is_rc_release=true" >> $GITHUB_OUTPUT
elif [[ ${{ github.event.ref }} =~ ^refs/tags/v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "is_rc_release=false" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 0edc5b8

Please sign in to comment.