Skip to content

Commit

Permalink
👷 enable alpha and beta builds
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardodino committed May 4, 2024
1 parent bcee962 commit e8cf9b5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Build

on:
push: { branches: ['main'] }
pull_request: { branches: ['main'] }
push: { branches: ['alpha', 'beta', 'main'] }
pull_request: { branches: ['alpha', 'beta', 'main'] }

jobs:
build:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
name: Release

on:
push: { tags: ['v[0-9]+.[0-9]+.[0-9]+'] }
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
- 'v[0-9]+.[0-9]+.[0-9]+-beta'
- 'v[0-9]+.[0-9]+.[0-9]+-alpha'

jobs:
release:
Expand Down
2 changes: 1 addition & 1 deletion Scripts/generate-release-config
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ ${USAGE}" >&2
exit 1
fi

if [[ ! "$MARKETING_VERSION" =~ ^[0-9]+.[0-9]+.[0-9]+$ ]]; then
if [[ ! "$MARKETING_VERSION" =~ ^[0-9]+.[0-9]+.[0-9]+(-alpha|-beta)?$ ]]; then
echo "Error: Marketing Version argument must be a SemVer string
Received: \"${MARKETING_VERSION}\"
Expand Down

0 comments on commit e8cf9b5

Please sign in to comment.