Skip to content
This repository was archived by the owner on May 9, 2025. It is now read-only.

Commit 918155d

Browse files
committed
CI: simple sourcehut build, test and gem submission
1 parent 10d2b6d commit 918155d

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

.build.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
image: alpine/latest
2+
packages:
3+
- ruby
4+
- ruby-bundler
5+
- ruby-dev
6+
- libdiscid
7+
environment:
8+
BUNDLE_PATH: ~/bundle
9+
secrets:
10+
- c8a363fe-8a12-461c-b57b-6aed5f744939
11+
tasks:
12+
- test: |
13+
cd ruby-discid
14+
bundle install
15+
bundle exec rake test
16+
# Skip publishing if this is not a tagged release
17+
- only-tags: |
18+
cd ruby-discid
19+
GIT_REF=$(git describe --always)
20+
[[ "$GIT_REF" =~ ^v[0-9]+\.[0-9]+(\.[0-9]+)?$ ]] || complete-build
21+
- publish: |
22+
gem build *.gemspec
23+
gem push *.gem

0 commit comments

Comments
 (0)