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 5dd2fce6fa0e411e0a7c3869b428b8a2dd6c0173 Author: Tai Dupree <[email protected]> AuthorDate: Thu Apr 22 12:07:40 2021 -0700 docs: add publish step --- .../actions/github-action-push-to-another-repository | 1 + .github/workflows/superset-docs.yml | 17 +++++++++++++++-- .gitmodules | 3 +++ docs/README.md | 1 - 4 files changed, 19 insertions(+), 3 deletions(-) diff --git a/.github/actions/github-action-push-to-another-repository b/.github/actions/github-action-push-to-another-repository new file mode 160000 index 0000000..f308953 --- /dev/null +++ b/.github/actions/github-action-push-to-another-repository @@ -0,0 +1 @@ +Subproject commit f30895310c20ef3d2569a5f690a80e56faf36c19 diff --git a/.github/workflows/superset-docs.yml b/.github/workflows/superset-docs.yml index 7dbe60d..876eb7d 100644 --- a/.github/workflows/superset-docs.yml +++ b/.github/workflows/superset-docs.yml @@ -9,14 +9,15 @@ on: - "docs/**" jobs: - docs: - name: docs + build-deploy: + name: Build & Deploy runs-on: ubuntu-20.04 steps: - name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )" uses: actions/checkout@v2 with: persist-credentials: false + submodules: recursive - name: npm install working-directory: ./docs run: | @@ -29,3 +30,15 @@ jobs: working-directory: ./docs run: | npm run build + - name: deploy docs + if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/tai/publish-docs-ci' + uses: ./.github/actions/github-action-push-to-another-repository + env: + API_TOKEN_GITHUB: ${{ secrets.SUPERSET_SITE_BUILD }} + with: + source-directory: './docs/public' + destination-github-username: 'apache' + destination-repository-name: 'superset-site' + target-branch: 'test-branch' + commit-message: "Publishing site for commit ${{ github.sha }}" + user-email: [email protected] \ No newline at end of file diff --git a/.gitmodules b/.gitmodules index 002a207..2669655 100644 --- a/.gitmodules +++ b/.gitmodules @@ -36,3 +36,6 @@ [submodule ".github/actions/chart-releaser-action"] path = .github/actions/chart-releaser-action url = https://github.com/helm/chart-releaser-action +[submodule ".github/actions/github-action-push-to-another-repository"] + path = .github/actions/github-action-push-to-another-repository + url = [email protected]:cpina/github-action-push-to-another-repository.git diff --git a/docs/README.md b/docs/README.md index fb7636e..17318fd 100644 --- a/docs/README.md +++ b/docs/README.md @@ -23,7 +23,6 @@ Here's the source to the documentation hosted at The site runs on the Gatsby framework and uses docz for it's `Documentation` subsection. - ## Getting Started ```bash
