Skip to content

feat: use the new API for factory deps #42

feat: use the new API for factory deps

feat: use the new API for factory deps #42

Workflow file for this run

name: Deploy docs
on:
push:
tags:
- "*.*.*"
paths:
- 'docs/**'
- '.github/workflows/deploy-docs.yaml'
pull_request:
paths:
- 'docs/**'
- '.github/workflows/deploy-docs.yaml'
workflow_dispatch:
inputs:
version:
type: string
description: "Version of the documentation to deploy"
required: true
docs-dir:
type: string
description: "Directory with the documentation"
required: false
default: "docs"
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
deploy-docs:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Deploy
uses: matter-labs/deploy-mdbooks@v1
with:
version: ${{ inputs.version || github.ref_name }}
docs-dir: ${{ inputs.docs-dir || 'docs' }}
github-token: ${{ secrets.GITHUB_TOKEN }}
enable-tests: true
deploy: ${{ github.event_name != 'pull_request' }}
create-latest-symlink: true
# Special job that allows some of the jobs to be skipped or failed
# requiring others to be successful
pr-checks:
runs-on: ubuntu-latest
if: always()
needs:
- deploy-docs
steps:
- name: Decide on PR checks
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}