Skip to content

2023-10-10 - Updated #10

2023-10-10 - Updated

2023-10-10 - Updated #10

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches: [ main ]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- name: Install @redocly/cli
run: npm install @redocly/cli@1.2.0 -g
- name: Build
run: redocly build-docs ./docs/cuculus-openapi.yaml
- name: Move to build/index.html
run: mkdir ./build
- run: mv ./redoc-static.html ./build/index.html
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: ./build
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2