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 e7b3f3ec5fca965221cbc69dffd3006016ec8bb9 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..b780f2e 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 docs 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 + run: | + git config user.name "Superset Bot" + git config user.email "[email protected]" + git remote set-url origin "https:/${{ secrets.SUPERSET_SITE_BUILD }}/@git.github.com/apache/superset-site.git" + git pull origin master + git add . + git commit -m "Publishing superset site for commit ${{ github.sha }}" + git push -u origin master
