mirror of
https://github.com/apache/superset.git
synced 2026-04-17 23:25:05 +00:00
chore(CI): get docs building on ALL branches. (#26854)
This commit is contained in:
@@ -1,15 +1,11 @@
|
||||
name: Docs
|
||||
name: Docs Deployment
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- "docs/**"
|
||||
branches:
|
||||
- 'master'
|
||||
pull_request:
|
||||
paths:
|
||||
- "docs/**"
|
||||
types: [synchronize, opened, reopened, ready_for_review]
|
||||
- "master"
|
||||
|
||||
jobs:
|
||||
config:
|
||||
@@ -51,9 +47,9 @@ jobs:
|
||||
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'
|
||||
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
|
||||
29
.github/workflows/superset-docs-verify.yml
vendored
Normal file
29
.github/workflows/superset-docs-verify.yml
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
name: Docs Testing
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- "docs/**"
|
||||
types: [synchronize, opened, reopened, ready_for_review]
|
||||
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@v3
|
||||
with:
|
||||
persist-credentials: false
|
||||
submodules: recursive
|
||||
- name: yarn install
|
||||
run: |
|
||||
yarn install --check-cache
|
||||
- name: yarn typecheck
|
||||
run: |
|
||||
yarn typecheck
|
||||
- name: yarn build
|
||||
run: |
|
||||
yarn build
|
||||
Reference in New Issue
Block a user