mirror of
https://github.com/apache/superset.git
synced 2026-04-18 15:44:57 +00:00
docs: add publish step (#14304)
This commit is contained in:
17
.github/workflows/superset-docs.yml
vendored
17
.github/workflows/superset-docs.yml
vendored
@@ -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: dev@superset.apache.org
|
||||
|
||||
Reference in New Issue
Block a user