mirror of
https://github.com/apache/superset.git
synced 2024-09-06 22:07:34 -04:00
42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
name: Docs
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- "docs/**"
|
|
pull_request:
|
|
paths:
|
|
- "docs/**"
|
|
|
|
jobs:
|
|
build-deploy:
|
|
name: Build & Deploy
|
|
runs-on: ubuntu-20.04
|
|
defaults:
|
|
run:
|
|
working-directory: docs
|
|
steps:
|
|
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
|
|
uses: actions/checkout@v2
|
|
with:
|
|
persist-credentials: false
|
|
submodules: recursive
|
|
- name: yarn install
|
|
run: |
|
|
yarn install --check-cache
|
|
- name: yarn build
|
|
run: |
|
|
yarn 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/build'
|
|
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
|