Skip to content

CD

CD #1019

Workflow file for this run

name: CD
on: workflow_dispatch
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
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