This is an automated email from the ASF dual-hosted git repository. tai pushed a commit to branch tai/publish-docs-ci in repository https://gitbox.apache.org/repos/asf/superset.git
commit 3e851bf0c7e3e587d1e1c9a4eda06d2b1e3d5d19 Author: Tai Dupree <[email protected]> AuthorDate: Thu Apr 22 12:07:40 2021 -0700 docs: add publish step --- .github/workflows/superset-docs.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/superset-docs.yml b/.github/workflows/superset-docs.yml index 7dbe60d..4963c4e 100644 --- a/.github/workflows/superset-docs.yml +++ b/.github/workflows/superset-docs.yml @@ -9,8 +9,8 @@ on: - "docs/**" jobs: - docs: - name: docs + build-deploy: + name: Build & Deploy runs-on: ubuntu-20.04 steps: - name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )" @@ -29,3 +29,14 @@ jobs: working-directory: ./docs run: | npm run build + - name: deploy docs + if: github.ref == 'refs/heads/master' + working-directory: ./docs/public + run: | + git config user.name "Superset Bot" + git config user.email "[email protected]" + git remote add asf-site "https:/${{ secrets.SUPERSET_SITE_BUILD }}/@git.github.com/apache/superset-site.git" + git pull asf-site master + git add . + git commit -m "Publishing superset site for commit ${{ github.sha }}" + git push -u asf-site master
