-
Notifications
You must be signed in to change notification settings - Fork 5
39 lines (32 loc) · 1001 Bytes
/
cd.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
name: CD
on: workflow_dispatch
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
with:
token: ${{ secrets.LOBOT_TOKEN }}
- name: bundle
uses: hilary/[email protected]
with:
base-spec: "./lob-api-public.yml"
bundled-spec: "dist/lob-api-bundled.yml"
- name: build zero-dependency docs
shell: bash
run: |
set -x
npm i redoc-cli --save-dev && npx patch-package
npm run redoc
- name: build postman collection
uses: ./actions/contract_tests
with:
testCommand: "npm run postman"
env:
LOB_API_TEST_TOKEN: ${{ secrets.LOB_API_TEST_TOKEN }}
LOB_API_LIVE_TOKEN: ${{ secrets.LOB_API_LIVE_TOKEN }}
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch