Skip to content

Commit 1728087

Browse files
committed
Update workflows
1 parent a3ef14a commit 1728087

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ jobs:
3636
uses: ruby/setup-ruby@v1
3737
with:
3838
ruby-version: '3.2'
39-
bundler-cache: true
40-
cache-version: 1 # Increment this when you need to bust cache
39+
bundler-cache: false # Disable cache for release workflow
40+
41+
- name: Configure Bundler for release
42+
run: bundle config set --local deployment false
4143

4244
- name: Install dependencies
43-
run: |
44-
bundle config set --local deployment false
45-
bundle install
45+
run: bundle install
4646

4747
- name: Configure Git
4848
run: |
@@ -54,7 +54,12 @@ jobs:
5454
run: |
5555
echo "Updating version to ${{ github.event.inputs.version }}"
5656
sed -i 's/VERSION = ".*"/VERSION = "${{ github.event.inputs.version }}"/' lib/ruby_llm/template/version.rb
57-
git add lib/ruby_llm/template/version.rb
57+
58+
# Update Gemfile.lock to reflect the new version
59+
bundle install
60+
61+
# Commit both the version file and the updated lock file
62+
git add lib/ruby_llm/template/version.rb Gemfile.lock
5863
git commit -m "Bump version to ${{ github.event.inputs.version }}"
5964
git tag "v${{ github.event.inputs.version }}"
6065
git push origin main

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
ruby_llm-template (0.1.1)
4+
ruby_llm-template (0.1.2)
55
ruby_llm (>= 1.0)
66
ruby_llm-schema (>= 0.2.0)
77

0 commit comments

Comments
 (0)