From b12ab541e94d01a2ef45cdf4b616d6653017caeb Mon Sep 17 00:00:00 2001 From: Tania Allard Date: Wed, 13 Oct 2021 18:20:19 +0100 Subject: [PATCH 1/3] DOC: Upload cheatsheets to site --- .github/workflows/ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c8f5f0385732f..40e8b40362b22 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -137,7 +137,7 @@ jobs: if: ${{github.event_name == 'push' && github.ref == 'refs/heads/master'}} - name: Upload web - run: rsync -az --delete --exclude='pandas-docs' --exclude='docs' --exclude='Pandas_Cheat_Sheet*' web/build/ docs@${{ secrets.server_ip }}:/usr/share/nginx/pandas + run: rsync -az --delete --exclude='pandas-docs' --exclude='docs' web/build/ docs@${{ secrets.server_ip }}:/usr/share/nginx/pandas if: ${{github.event_name == 'push' && github.ref == 'refs/heads/master'}} - name: Upload dev docs @@ -146,6 +146,10 @@ jobs: - name: Move docs into site directory run: mv doc/build/html web/build/docs + + - name: Copy cheatsheets into site directory + run: cp doc/cheatsheet/Pandas_Cheat_Sheet* web/build/docs/cheatsheet + - name: Save website as an artifact uses: actions/upload-artifact@v2 with: From f44cf03e292378700a6d8735cad70d1fb3f7c5e8 Mon Sep 17 00:00:00 2001 From: Tania Allard Date: Thu, 14 Oct 2021 11:36:40 +0100 Subject: [PATCH 2/3] DOC: Ensure cheatsheets directory exists --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 40e8b40362b22..8db21cb165cde 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -148,7 +148,9 @@ jobs: run: mv doc/build/html web/build/docs - name: Copy cheatsheets into site directory - run: cp doc/cheatsheet/Pandas_Cheat_Sheet* web/build/docs/cheatsheet + run: | + mkdir -p web/build/docs/cheatsheets + cp doc/cheatsheet/Pandas_Cheat_Sheet* web/build/docs/cheatsheets - name: Save website as an artifact uses: actions/upload-artifact@v2 From 37ad506e8e967a89baccb367d91122eeaf9deaf5 Mon Sep 17 00:00:00 2001 From: Tania Allard Date: Mon, 18 Oct 2021 12:04:24 +0100 Subject: [PATCH 3/3] DOC: Move cheatsheets to web/build --- .github/workflows/ci.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8db21cb165cde..20f7712131ba4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -148,9 +148,7 @@ jobs: run: mv doc/build/html web/build/docs - name: Copy cheatsheets into site directory - run: | - mkdir -p web/build/docs/cheatsheets - cp doc/cheatsheet/Pandas_Cheat_Sheet* web/build/docs/cheatsheets + run: cp doc/cheatsheet/Pandas_Cheat_Sheet* web/build/ - name: Save website as an artifact uses: actions/upload-artifact@v2