Skip to content

Commit fd48651

Browse files
author
Drew Yang
committed
ci: 🎨 consolidate doc release by workflow_call
1 parent 3e39771 commit fd48651

File tree

2 files changed

+3
-13
lines changed

2 files changed

+3
-13
lines changed

‎.github/workflows/development.yaml‎

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -122,25 +122,14 @@ jobs:
122122
uses: actions/checkout@v4
123123
- name: Codespell
124124
uses: codespell-project/actions-codespell@v2
125-
publish-docs:
125+
call-publish-docs:
126126
if: |
127127
github.event_name == 'push' &&
128128
startsWith(github.ref, 'refs/tags')
129129
needs: test
130130
runs-on: ubuntu-latest
131-
env:
132-
DOCKER_CLIENT_TIMEOUT: "120"
133-
COMPOSE_HTTP_TIMEOUT: "120"
134131
steps:
135-
- uses: actions/checkout@v4
136-
- name: Deploy docs
137-
run: |
138-
export MODE=BUILD
139-
export PACKAGE=datajoint
140-
export UPSTREAM_REPO=https://github.com/${GITHUB_REPOSITORY}.git
141-
export HOST_UID=$(id -u)
142-
docker compose -f docs/docker-compose.yaml up --quiet-pull --exit-code-from docs --build
143-
git push origin gh-pages
132+
- uses: ./.github/workflows/docs.yaml
144133
publish-release:
145134
if: |
146135
github.event_name == 'push' &&

‎.github/workflows/docs.yaml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Manual docs release
22
on:
33
workflow_dispatch:
4+
workflow_call:
45
jobs:
56
publish-docs:
67
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)