From 019659e1f56e2e34c8fa596b502c5116783344f0 Mon Sep 17 00:00:00 2001 From: Sangjoon Bob Lee Date: Sun, 11 Aug 2024 22:18:37 -0400 Subject: [PATCH] Remove older doc.yml and add cookie on push --- .github/workflows/docs.yml | 2 ++ .github/workflows/documentation.yml | 37 ----------------------------- 2 files changed, 2 insertions(+), 37 deletions(-) delete mode 100644 .github/workflows/documentation.yml diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 2909d67f..0619d218 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -4,6 +4,8 @@ on: push: branches: - main + - cookie + - cookie-doc release: jobs: diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml deleted file mode 100644 index 22a7cd12..00000000 --- a/.github/workflows/documentation.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: Documentation -on: - push: - branches: [ main ] - workflow_dispatch: - -jobs: - docs: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - - uses: conda-incubator/setup-miniconda@v2 - with: - activate-environment: build - auto-update-conda: true - - - name: Install requirements - run: | - conda install -n build -c conda-forge --file requirements/docs.txt --quiet --yes - sudo apt-get install python3-sphinx - - - name: Install the package - run: python -m pip install . - - - name: Build documents - run: | - conda activate build - make -C doc html - - - name: Deploy - uses: peaceiris/actions-gh-pages@v3 - with: - publish_branch: gh-pages - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./doc/build/html - force_orphan: true