From 3e8a6cf679745ef45cd959b1432fa96c4a7bbff5 Mon Sep 17 00:00:00 2001 From: AhmetCanSolak Date: Thu, 28 Apr 2022 11:50:06 -0700 Subject: [PATCH 1/5] initial commit --- .github/workflows/docs_update.yml | 37 +++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/docs_update.yml diff --git a/.github/workflows/docs_update.yml b/.github/workflows/docs_update.yml new file mode 100644 index 00000000..a6f23cdf --- /dev/null +++ b/.github/workflows/docs_update.yml @@ -0,0 +1,37 @@ +name: Docs Update + +on: + push: + branches: + - master + + +jobs: + style: + name: Docs Update + runs-on: ubuntu-latest + if: github.repository == 'royerlab/aydin' + + strategy: + matrix: + python-version: [ 3.9 ] + + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -e . + pip install -r docs/requirements-docs.txt + - name: Build docs + run: | + make clean + make html + - name: Update doc + run: | + make clean + make html From 7bb7e32ee2c11649a6d5a52e9e0a671e52c12e89 Mon Sep 17 00:00:00 2001 From: AhmetCanSolak Date: Thu, 28 Apr 2022 11:57:58 -0700 Subject: [PATCH 2/5] trial to run the task on PR branch --- .github/workflows/docs_update.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/docs_update.yml b/.github/workflows/docs_update.yml index a6f23cdf..3e478b0a 100644 --- a/.github/workflows/docs_update.yml +++ b/.github/workflows/docs_update.yml @@ -4,6 +4,7 @@ on: push: branches: - master + - docs-ci-task jobs: From 1b168272bdd6cef2fe5d71b2232de4cf6d833030 Mon Sep 17 00:00:00 2001 From: AhmetCanSolak Date: Thu, 28 Apr 2022 13:23:08 -0700 Subject: [PATCH 3/5] yaml syntax fix --- .github/workflows/docs_update.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docs_update.yml b/.github/workflows/docs_update.yml index 3e478b0a..f2ce12a5 100644 --- a/.github/workflows/docs_update.yml +++ b/.github/workflows/docs_update.yml @@ -33,6 +33,6 @@ jobs: make clean make html - name: Update doc - run: | - make clean - make html + run: | + make clean + make html From c821b5a7ab5387b97247dbd2bb3b127fb2e0cd54 Mon Sep 17 00:00:00 2001 From: AhmetCanSolak Date: Thu, 28 Apr 2022 13:41:16 -0700 Subject: [PATCH 4/5] checking for fork repo for dev purposes --- .github/workflows/docs_update.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/docs_update.yml b/.github/workflows/docs_update.yml index f2ce12a5..d12c9273 100644 --- a/.github/workflows/docs_update.yml +++ b/.github/workflows/docs_update.yml @@ -11,7 +11,7 @@ jobs: style: name: Docs Update runs-on: ubuntu-latest - if: github.repository == 'royerlab/aydin' + if: github.repository == 'AhmetCanSolak/aydin' strategy: matrix: @@ -32,7 +32,3 @@ jobs: run: | make clean make html - - name: Update doc - run: | - make clean - make html From cf5dcad7b5b03fa3082467db69fe539994272e2b Mon Sep 17 00:00:00 2001 From: AhmetCanSolak Date: Thu, 28 Apr 2022 13:49:30 -0700 Subject: [PATCH 5/5] cd docs added --- .github/workflows/docs_update.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/docs_update.yml b/.github/workflows/docs_update.yml index d12c9273..78c8b1ee 100644 --- a/.github/workflows/docs_update.yml +++ b/.github/workflows/docs_update.yml @@ -30,5 +30,6 @@ jobs: pip install -r docs/requirements-docs.txt - name: Build docs run: | + cd docs make clean make html