-
Notifications
You must be signed in to change notification settings - Fork 14.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
23 additions
and
4 deletions.
There are no files selected for viewing
Submodule github-action-push-to-another-repository
added at
f30895
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: "deploying docs: ${{ github.event.head_commit.message }} (apache/superset@${{ github.sha }})" | ||
user-email: [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters