forked from datajoint/datajoint-python
-
Notifications
You must be signed in to change notification settings - Fork 0
25 lines (25 loc) · 749 Bytes
/
docs.yaml
File metadata and controls
25 lines (25 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
name: Docs release
on:
# manually trigger
workflow_dispatch:
# Once draft release is released, trigger the docs release
release:
types:
## pre-release and stable release
#- published
## stable release only
- released
run-name: "📚 Release docs ${{ github.event.release.tag_name }}"
jobs:
publish-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Deploy docs
run: |
export MODE=BUILD
export PACKAGE=datajoint
export UPSTREAM_REPO=https://github.com/${GITHUB_REPOSITORY}.git
export HOST_UID=$(id -u)
docker compose -f docs/docker-compose.yaml up --exit-code-from docs --build
git push origin gh-pages