Skip to content

Commit 2171411

Browse files
author
Vignesh Kennadi
committed
adds publish step and run build command
1 parent 30257b1 commit 2171411

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed

.github/workflows/publish.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Publish
2+
on:
3+
release:
4+
types: [published]
5+
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout xero-ruby repo
11+
uses: actions/checkout@v4
12+
with:
13+
repository: XeroAPI/xero-ruby
14+
path: xero-ruby
15+
16+
- name: Set up Ruby environment
17+
uses: ruby/setup-ruby@v1
18+
with:
19+
ruby-version: '3.2.0'
20+
bundler-cache: true
21+
22+
- name: Install dependencies
23+
run: bundle install
24+
working-directory: xero-ruby
25+
26+
- name: Run Build
27+
run: gem build
28+
working-directory: xero-ruby
29+
30+
- name: Publish to Ruby
31+
env:
32+
RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
33+
run: |
34+
gemspec_file=$(ls *.gemspec)
35+
gem_file=$(gem build "$gemspec_file" | grep -o '[^ ]*\.gem')
36+
echo "$gem_file"
37+
working-directory: xero-ruby

lib/xero-ruby/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
=end
1212

1313
module XeroRuby
14-
VERSION = '9.3.0'
14+
VERSION = '9.3.0-alpha'
1515
end

0 commit comments

Comments
 (0)