-
Notifications
You must be signed in to change notification settings - Fork 14
53 lines (44 loc) · 1.3 KB
/
Copy pathrelease.yml
File metadata and controls
53 lines (44 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: release
on:
push:
tags:
- 'v*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout monorepo
uses: actions/checkout@v7
with:
repository: interscript/interscript
- name: Bootstrap packages
run: ruby bootstrap.rb
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
bundler-cache: true
working-directory: ruby
- uses: actions/setup-node@v7
with:
node-version: '22'
cache: npm
cache-dependency-path: js/package-lock.json
- name: Install gems
working-directory: ruby
run: bundle install --jobs 4 --retry 3 --with jsexec --without secryst
- name: Test Ruby package
working-directory: ruby
run: bundle exec rake
- name: Test JS package
working-directory: js
run: npm install && npm run prepareMaps && npm test
- name: Publish to rubygems.org
env:
RUBYGEMS_API_KEY: ${{ secrets.INTERSCRIPT_RUBYGEMS_API_KEY }}
working-directory: ruby
run: |
mkdir -p ~/.gem
printf -- "---\n:rubygems_api_key: %s\n" "$RUBYGEMS_API_KEY" > ~/.gem/credentials
chmod 0600 ~/.gem/credentials
gem install gem-release
gem release