-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (44 loc) · 1.2 KB
/
publish.yml
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
name: Publish
on:
push:
branches: [ main ]
jobs:
javascript:
runs-on: ubuntu-latest
defaults:
run:
working-directory: v1/clients/javascript
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: '17.x'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm install --ignore-scripts
- name: Publish
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_API_KEY }}
ruby:
runs-on: ubuntu-latest
defaults:
run:
working-directory: v1/clients/ruby
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
- name: Setup gem credentials
run: |
mkdir -p $HOME/.gem
touch $HOME/.gem/credentials
chmod 0600 $HOME/.gem/credentials
printf -- "---\n:rubygems_api_key: ${RUBY_GEMS_API_KEY}\n" > $HOME/.gem/credentials
env:
RUBY_GEMS_API_KEY: ${{ secrets.RUBY_GEMS_API_KEY }}
- name: Build gem
run: gem build
- name: Publish gem
run: gem push DealMakerAPI-*.gem