Skip to content

Commit 6889c47

Browse files
committed
Update release workflow
1 parent 27e24bd commit 6889c47

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/release.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,26 @@ jobs:
1010
name: Build a package
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
14+
- uses: ruby/setup-ruby@v1
15+
with:
16+
ruby-version: 3.4
17+
bundler-cache: true
18+
- run: bundle exec rake build
1419

1520
release:
1621
name: Release
1722
runs-on: ubuntu-latest
23+
permissions:
24+
contents: write
25+
id-token: write
1826
if: startsWith(github.ref, 'refs/tags/') # Run only when tagged like v1.0.1
1927
steps:
28+
- uses: actions/checkout@v4
29+
- uses: ruby/setup-ruby@v1
30+
with:
31+
ruby-version: 3.4
32+
bundler-cache: true
2033
- id: package_name
2134
run: |
2235
echo "package_name=$(basename pkg/*.gem | tail -n1)" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)