Files
Kazuaki Matsuo f628d517fe ci: update publish docs workflow (#22057)
* ci: update publish docs workflow

* use docs:publish

* Add step to fetch gh-pages before publishing docs

* ci: run after 'Appium Server Release' completion
2026-03-11 00:20:54 -07:00

33 lines
790 B
YAML

name: Publish docs
on:
workflow_dispatch:
workflow_run:
workflows: ["Appium Server Release"]
types:
- completed
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- run: |
git config user.name github-actions
git config user.email github-actions@github.com
- name: Setup Node and install deps (LTS)
uses: ./.github/actions/setup-build
with:
node-version: lts/*
install-command: npm ci
run-build: 'true'
- name: Install dependencies (Python)
run: npm run install-docs-deps
- name: Fetch gh-pages
run: |
git fetch origin gh-pages:gh-pages || true
- name: Publish docs
run: |
npm run docs:publish