From f7229ab3e710f8c654aaa2777b1016e588b7809e Mon Sep 17 00:00:00 2001 From: Revathyvenugopal162 Date: Thu, 20 Apr 2023 16:17:44 +0200 Subject: [PATCH 1/7] debug: test the deploy --- .github/workflows/ci_cd.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 2bf413a3..7c9881a6 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -114,8 +114,8 @@ jobs: retention-days: 7 - name: Deploy - if: contains(github.ref, 'refs/heads/main') - uses: JamesIves/github-pages-deploy-action@v4.4.1 + #if: contains(github.ref, 'refs/heads/main') + uses: JamesIves/github-pages-deploy-action@v4 with: token: ${{ secrets.GITHUB_TOKEN }} branch: gh-pages From 9176a6e50ce560f8167bbe10b48df4f1868b26f1 Mon Sep 17 00:00:00 2001 From: Revathyvenugopal162 Date: Thu, 20 Apr 2023 16:37:41 +0200 Subject: [PATCH 2/7] debug: test with git --- .github/workflows/ci_cd.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 7c9881a6..92c625c9 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -113,7 +113,9 @@ jobs: path: doc/_build/html retention-days: 7 - - name: Deploy + - name: Install Git + run: sudo apt-get update && sudo apt-get install -y git + - name: Deploy using Deploy Token #if: contains(github.ref, 'refs/heads/main') uses: JamesIves/github-pages-deploy-action@v4 with: From 94215ffa4b804c5ad2b5461ec75ba6d53887d6b9 Mon Sep 17 00:00:00 2001 From: Revathyvenugopal162 Date: Thu, 20 Apr 2023 17:06:00 +0200 Subject: [PATCH 3/7] debug: test with artifacts --- .github/workflows/ci_cd.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 92c625c9..e7999aef 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -113,14 +113,16 @@ jobs: path: doc/_build/html retention-days: 7 - - name: Install Git - run: sudo apt-get update && sudo apt-get install -y git - - name: Deploy using Deploy Token + - name: Download artifacts + uses: actions/download-artifact@v2 + with: + name: documentation-html + - name: Deploy to GitHub Pages #if: contains(github.ref, 'refs/heads/main') uses: JamesIves/github-pages-deploy-action@v4 with: token: ${{ secrets.GITHUB_TOKEN }} branch: gh-pages - folder: doc/_build/html + folder: documentation-html/ clean: true single-commit: true From fce87331b450587470f5afce6edff2e6f568e292 Mon Sep 17 00:00:00 2001 From: Revathyvenugopal162 Date: Thu, 20 Apr 2023 17:06:31 +0200 Subject: [PATCH 4/7] debug: test with git --- .github/workflows/ci_cd.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index e7999aef..523003e4 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -117,6 +117,8 @@ jobs: uses: actions/download-artifact@v2 with: name: documentation-html + - name: Install Git + run: sudo apt-get update && sudo apt-get install -y git - name: Deploy to GitHub Pages #if: contains(github.ref, 'refs/heads/main') uses: JamesIves/github-pages-deploy-action@v4 From 5cd042e0d5a25d9ff7d3e2b00a8de1a73f8021c2 Mon Sep 17 00:00:00 2001 From: Revathyvenugopal162 Date: Thu, 20 Apr 2023 17:39:52 +0200 Subject: [PATCH 5/7] debug: test with artifacts --- .github/workflows/ci_cd.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 523003e4..b745ba8f 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -113,12 +113,21 @@ jobs: path: doc/_build/html retention-days: 7 - - name: Download artifacts - uses: actions/download-artifact@v2 + doc-deploy: + name: Documentation deploy + runs-on: ubuntu-latest + needs: [style, doc-style] + + steps: + + - name: Checkout + uses: actions/checkout@v3 + + - name: Download Artifacts + uses: actions/download-artifact@v1 with: name: documentation-html - - name: Install Git - run: sudo apt-get update && sudo apt-get install -y git + - name: Deploy to GitHub Pages #if: contains(github.ref, 'refs/heads/main') uses: JamesIves/github-pages-deploy-action@v4 From ab7c735dddc69060d3be49a6525163dca571bc71 Mon Sep 17 00:00:00 2001 From: Revathyvenugopal162 Date: Thu, 20 Apr 2023 17:48:22 +0200 Subject: [PATCH 6/7] debug: test with artifacts --- .github/workflows/ci_cd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index b745ba8f..b5a7a11c 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -116,7 +116,7 @@ jobs: doc-deploy: name: Documentation deploy runs-on: ubuntu-latest - needs: [style, doc-style] + needs: [doc-build] steps: From 03cf692b86c47c4a99233c19b02d8a0059e59290 Mon Sep 17 00:00:00 2001 From: Revathyvenugopal162 Date: Thu, 20 Apr 2023 17:51:45 +0200 Subject: [PATCH 7/7] fix: deploy docs --- .github/workflows/ci_cd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index b5a7a11c..29fba539 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -129,7 +129,7 @@ jobs: name: documentation-html - name: Deploy to GitHub Pages - #if: contains(github.ref, 'refs/heads/main') + if: contains(github.ref, 'refs/heads/main') uses: JamesIves/github-pages-deploy-action@v4 with: token: ${{ secrets.GITHUB_TOKEN }}