mirror of
https://github.com/appium/appium.git
synced 2026-04-28 06:20:31 -05:00
f628d517fe
* ci: update publish docs workflow * use docs:publish * Add step to fetch gh-pages before publishing docs * ci: run after 'Appium Server Release' completion
33 lines
790 B
YAML
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
|