Skip to content

Commit 5743979

Browse files
authored
ci: update publish docs workflow (#2734)
* ci: update publish docs workflow * update step name * run format
1 parent ffcb0f7 commit 5743979

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

.github/workflows/build-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
node-version: lts/*
2626
cache: 'npm'
2727
- name: Install dependencies (Node.js)
28-
run: npm install
28+
run: npm ci
2929
- name: Install dependencies (Python)
3030
run: npm run install-docs-deps
3131
- name: Build Docs

.github/workflows/package.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
name: Create packages
1+
# Builds the desktop and plugin versions of the app.
2+
# The plugin version is published to npm, while the desktop app packages
3+
# are uploaded to a GitHub release for the latest app version tag.
4+
5+
name: Package and Publish
26

37
on:
48
workflow_dispatch:

.github/workflows/publish-docs.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
# Builds and publishes the Appium Inspector MkDocs documentation
2+
# Executed on-demand, or after publishing new version packages
23

34
name: Publish Docs
45

56
on:
67
workflow_dispatch:
8+
workflow_run:
9+
workflows: ['Package and Publish']
10+
types:
11+
- completed
712

813
jobs:
914
build:
@@ -20,8 +25,10 @@ jobs:
2025
node-version: lts/*
2126
cache: 'npm'
2227
- name: Install dependencies (Node.js)
23-
run: npm install
28+
run: npm ci
2429
- name: Install dependencies (Python)
2530
run: npm run install-docs-deps
31+
- name: Fetch docs branch
32+
run: git fetch origin docs-site:docs-site || true
2633
- name: Build and deploy docs
2734
run: npm run publish:docs

0 commit comments

Comments
 (0)