feat: 🚀 Docs V2 CI Script (#18560)

* switch to v2

* promote docv2

* remove on triggers
This commit is contained in:
Hugh A. Miles II
2022-02-02 13:02:51 -08:00
committed by GitHub
parent 70969821de
commit 9c3205b573
509 changed files with 5133 additions and 93411 deletions

View File

@@ -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

View File

@@ -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'