You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by jo...@apache.org on 2021/08/17 13:24:08 UTC
[arrow-cookbook] branch main updated: Copy .asf.yaml to asf-site
branch (#38)
This is an automated email from the ASF dual-hosted git repository.
jorisvandenbossche 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 632f250 Copy .asf.yaml to asf-site branch (#38)
632f250 is described below
commit 632f250bb4afaa374b8f434c0bffc960fc947c7a
Author: Weston Pace <we...@gmail.com>
AuthorDate: Tue Aug 17 03:24:02 2021 -1000
Copy .asf.yaml to asf-site branch (#38)
---
.github/workflows/deploy_cookbooks.yml | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/deploy_cookbooks.yml b/.github/workflows/deploy_cookbooks.yml
index 3ca6101..f12ded9 100644
--- a/.github/workflows/deploy_cookbooks.yml
+++ b/.github/workflows/deploy_cookbooks.yml
@@ -21,6 +21,8 @@ jobs:
run: make test
- name: Build and render books
run: make all
+ - name: Copy .asf.yaml
+ run: cp .asf.yaml build/.asf.yaml
- name: Upload book artifact
uses: actions/upload-artifact@v1
with:
@@ -36,6 +38,10 @@ jobs:
uses: actions/checkout@v2
with:
ref: gh-pages
+ - name: Prepare branch
+ run: |
+ git checkout --orphan gh-pages-tmp
+ git rm -rf .
- name: Download book artifact
uses: actions/download-artifact@v1.0.0
with:
@@ -45,8 +51,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 add --all
git commit -m 'publish built book'
git push -f origin gh-pages-tmp:gh-pages
git push -f origin gh-pages-tmp:asf-site