Skip to content

v0.21.3

v0.21.3 #30

Workflow file for this run

name: OpenAPI Continuous Delivery
on:
release:
types: [published]
workflow_dispatch:
jobs:
openapi-bundle:
name: Bundle OpenAPI Specifications
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup Node.js environment
uses: actions/setup-node@v6.0.0
with:
node-version: "18.1"
- name: Setup bundler
run: |
npm install -g @redocly/cli@1.0.0-beta.100
mkdir bundled/
- name: Bundle
run: redocly bundle openapi/spec/openapi.yaml -o bundled/openapi.yaml
- name: Upload artifacts
uses: actions/upload-artifact@v5
with:
name: bundled
path: bundled/
openapi-delivery:
name: Deliver OpenAPI Specifications
runs-on: ubuntu-latest
needs:
- openapi-bundle
steps:
- uses: actions/checkout@v6
- name: Setup uploader
run: mkdir bundled/
- name: Download artificats
uses: actions/download-artifact@v6
with:
name: bundled
path: bundled/
- name: Delivery OpenAPI to Space
uses: BetaHuhn/do-spaces-action@v2
with:
access_key: ${{ secrets.SPACE_ACCESS_KEY }}
secret_key: ${{ secrets.SPACE_SECRET_KEY }}
space_name: ${{ secrets.SPACE_NAME }}
space_region: ${{ secrets.SPACE_REGION }}
source: bundled/