You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by we...@apache.org on 2021/08/11 19:54:06 UTC

[arrow-cookbook] branch main updated: Changing the gh-pages deploy so that the gh-pages branch is always a single commit instead of something that keeps history (#26)

This is an automated email from the ASF dual-hosted git repository.

westonpace pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-cookbook.git


The following commit(s) were added to refs/heads/main by this push:
     new 2db9fad  Changing the gh-pages deploy so that the gh-pages branch is always a single commit instead of something that keeps history (#26)
2db9fad is described below

commit 2db9fad72ee27526ca96c62dfde15ec521782472
Author: Weston Pace <we...@gmail.com>
AuthorDate: Wed Aug 11 09:53:59 2021 -1000

    Changing the gh-pages deploy so that the gh-pages branch is always a single commit instead of something that keeps history (#26)
---
 .github/workflows/deploy_cookbooks.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/deploy_cookbooks.yml b/.github/workflows/deploy_cookbooks.yml
index a0f9fcc..c1539ba 100644
--- a/.github/workflows/deploy_cookbooks.yml
+++ b/.github/workflows/deploy_cookbooks.yml
@@ -45,6 +45,7 @@ jobs:
         run: |
           git config --global user.name 'GitHub Actions'
           git config --global user.email 'actions@github.com'
+          git checkout --orphan gh-pages-tmp
           git add *
           git commit -m 'publish built book'
-          git push origin gh-pages
+          git push -f origin gh-pages-tmp:gh-pages