From 81e6bae474250174d119484c318658d633f2da37 Mon Sep 17 00:00:00 2001 From: Guillaume Lemaitre Date: Wed, 14 Aug 2024 18:39:52 +0200 Subject: [PATCH] adding workflow to deploy book --- .github/workflows/deploy_book.yml | 19 +++++++++++++++++++ .github/workflows/testing.yml | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/deploy_book.yml diff --git a/.github/workflows/deploy_book.yml b/.github/workflows/deploy_book.yml new file mode 100644 index 0000000..c253082 --- /dev/null +++ b/.github/workflows/deploy_book.yml @@ -0,0 +1,19 @@ +name: 'publish_book' + +on: + push: + branches: + - "main" + +jobs: + publish_book: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: prefix-dev/setup-pixi@v0.8.1 + with: + pixi-version: v0.27.1 + environments: doc + + - name: Build and publish the book + run: pixi run -e doc publish-book diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 60e870d..883a4e8 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -28,4 +28,4 @@ jobs: pixi run check-generated-predictions pixi run build-calibration-curve pixi run different-calibration-curves - pixi run -e doc build-book \ No newline at end of file + pixi run -e doc build-book