You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ta...@apache.org on 2021/04/22 21:15:01 UTC

[superset] branch tai/publish-docs-ci updated (5dd2fce -> b21a961)

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

tai pushed a change to branch tai/publish-docs-ci
in repository https://gitbox.apache.org/repos/asf/superset.git.


 discard 5dd2fce  docs: add publish step
     new b21a961  docs: add publish step

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (5dd2fce)
            \
             N -- N -- N   refs/heads/tai/publish-docs-ci (b21a961)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .github/workflows/superset-docs.yml | 4 ++--
 docs/README.md                      | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

[superset] 01/01: docs: add publish step

Posted by ta...@apache.org.
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 b21a9617cbb323a8540228c9d78702de743a47a1
Author: Tai Dupree <td...@gmail.com>
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 +++
 3 files changed, 19 insertions(+), 2 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..b134e0a 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'
+        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: 'asf-site'
+          commit-message: "Publishing site for commit ${{ github.sha }}"
+          user-email: dev@superset.apache.org
\ 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 = git@github.com:cpina/github-action-push-to-another-repository.git