Files
storage/.github/workflows/sync-docs.yml
T

35 lines
1005 B
YAML

name: Sync docs
on:
push:
branches: [main, master]
paths: ['**/*.md']
release:
types: [published]
repository_dispatch:
types: [sync-docs]
workflow_dispatch:
inputs:
mode:
description: 'push = sync current docs, release-all = version snapshots for all latest module releases'
type: choice
options: [push, release-all]
default: push
jobs:
sync:
uses: gofiber/.github/.github/workflows/sync-docs.yml@main
with:
repo-type: multi
destination-dir: docs/storage
version-file: storage_versions.json
docusaurus-command: npm run docusaurus -- docs:version:storage
commit-url: https://github.com/gofiber/storage
event-mode: >-
${{ github.event_name == 'workflow_dispatch' && inputs.mode
|| github.event_name == 'repository_dispatch' && 'release-all'
|| github.event_name }}
tag-name: ${{ github.ref_name }}
secrets:
doc-sync-token: ${{ secrets.DOC_SYNC_TOKEN }}