Skip to content

Commit

Permalink
Add docs build workflow
Browse files Browse the repository at this point in the history
Checkout current atlas source

Install doxygen

Install latex

Install texlive-full
  • Loading branch information
figi44 authored and wdeconinck committed Jan 26, 2024
1 parent 2bb2293 commit 5f4cfb8
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/docs-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# note: each step is executed in own process
build-steps:
- git clone --depth 1 https://github.com/ecmwf/atlas-docs.git $RUNNER_TEMP/atlas-docs
- sudo apt install -y -q doxygen texlive-full
- |
cd $RUNNER_TEMP/atlas-docs
make PUBLIC=1 WITH_ECKIT=1 WITH_DOXYGEN=1 ATLAS_SOURCE_DIR=$GITHUB_WORKSPACE clean html
echo "DOC_BUILD_PATH=$RUNNER_TEMP/atlas-docs/build/html" >> "$GITHUB_ENV"
hosts:
ecmwf-sites:
space: docs
name: atlas

15 changes: 15 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: docs

on:
push:
tags:
- '**'

workflow_dispatch: ~

jobs:
publish:
uses: ecmwf-actions/reusable-workflows/.github/workflows/cd-docs.yml@v2
secrets: inherit
with:
config: .github/docs-config.yml

0 comments on commit 5f4cfb8

Please sign in to comment.