Skip to content

Commit

Permalink
v1.17 release learnings (#39) (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
buffalu authored Feb 6, 2024
1 parent c7d633d commit 40e7350
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@ name: Geyser CI

on:
push:
branches: [ master ]
branches:
- master
- 'v*.*'
tags:
- 'v*.*.*'
pull_request:
branches: [ master ]
branches:
- master
- 'v*.*'

jobs:
lint:
Expand Down
13 changes: 12 additions & 1 deletion release
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
#!/usr/bin/env sh
cargo workspaces version --all --exact --no-individual-tags

# Get the current branch name
current_branch=$(git rev-parse --abbrev-ref HEAD)

branch_pattern="^v[0-9]+\.[0-9]+$"

if [[ $current_branch =~ $branch_pattern ]] || [ "$current_branch" = "master" ]; then
# If the current branch is a version branch or master, run the cargo workspaces version command
cargo workspaces version --all --exact --no-individual-tags --allow-branch $current_branch
else
echo "Current branch does not match the allowed patterns."
fi

0 comments on commit 40e7350

Please sign in to comment.