Skip to content

Commit 3311a7e

Browse files
committedJan 17, 2025
chore: Add GhA CI release pipeline
Tagging a release will automatically release to Rubygems and create a Github released based on the CHANGELOG.md.
1 parent 4438885 commit 3311a7e

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
 

‎.github/workflows/release.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# vim: ft=yaml
2+
3+
name: release
4+
5+
on:
6+
push:
7+
tags:
8+
- v*
9+
10+
jobs:
11+
rubygems:
12+
if: github.repository == 'jgraichen/acfs'
13+
runs-on: ubuntu-24.04
14+
15+
permissions:
16+
contents: write
17+
id-token: write
18+
19+
env:
20+
BUNDLE_JOBS: 4
21+
BUNDLE_RETRY: 10
22+
BUNDLE_WITHOUT: development test
23+
24+
steps:
25+
- uses: actions/checkout@v4
26+
27+
- uses: ruby/setup-ruby@v1
28+
with:
29+
ruby-version: ruby
30+
bundler-cache: true
31+
32+
- uses: rubygems/release-gem@v1
33+
34+
- uses: taiki-e/create-gh-release-action@v1
35+
with:
36+
changelog: CHANGELOG.md
37+
draft: true
38+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)