mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
feat: 🚀 Docs V2 CI Script (#18560)
* switch to v2 * promote docv2 * remove on triggers
This commit is contained in:
31
.github/workflows/superset-docs-v2.yml
vendored
31
.github/workflows/superset-docs-v2.yml
vendored
@@ -1,31 +0,0 @@
|
||||
name: Docs v2
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- "docs-v2/**"
|
||||
- .github/workflows/superset-docs-v2.yml
|
||||
pull_request:
|
||||
paths:
|
||||
- "docs-v2/**"
|
||||
- .github/workflows/superset-docs-v2.yml
|
||||
|
||||
jobs:
|
||||
build-deploy:
|
||||
name: Build & Deploy
|
||||
runs-on: ubuntu-20.04
|
||||
defaults:
|
||||
run:
|
||||
working-directory: docs-v2
|
||||
steps:
|
||||
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
persist-credentials: false
|
||||
submodules: recursive
|
||||
- name: yarn install
|
||||
run: |
|
||||
yarn install --immutable --immutable-cache --check-cache
|
||||
- name: yarn build
|
||||
run: |
|
||||
yarn build
|
||||
19
.github/workflows/superset-docs.yml
vendored
19
.github/workflows/superset-docs.yml
vendored
@@ -12,31 +12,28 @@ 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: npm install
|
||||
working-directory: ./docs
|
||||
- name: yarn install
|
||||
run: |
|
||||
npm install
|
||||
- name: lint
|
||||
working-directory: ./docs
|
||||
yarn install --immutable --immutable-cache --check-cache
|
||||
- name: yarn build
|
||||
run: |
|
||||
npm run lint
|
||||
- name: gatsby build
|
||||
working-directory: ./docs
|
||||
run: |
|
||||
npm run build
|
||||
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/public'
|
||||
source-directory: './docs/build'
|
||||
destination-github-username: 'apache'
|
||||
destination-repository-name: 'superset-site'
|
||||
target-branch: 'asf-site'
|
||||
|
||||
Reference in New Issue
Block a user