Skip to content

ci: remove main trigger for docs deployment #16

ci: remove main trigger for docs deployment

ci: remove main trigger for docs deployment #16

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