Skip to content

Commit

Permalink
feat: 🚀 Docs V2 CI Script (#18560)
Browse files Browse the repository at this point in the history
* switch to v2

* promote docv2

* remove on triggers
  • Loading branch information
hughhhh authored Feb 2, 2022
1 parent 7096982 commit 9c3205b
Show file tree
Hide file tree
Showing 509 changed files with 7,505 additions and 95,783 deletions.
31 changes: 0 additions & 31 deletions .github/workflows/superset-docs-v2.yml

This file was deleted.

19 changes: 8 additions & 11 deletions .github/workflows/superset-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
20 changes: 0 additions & 20 deletions docs-v2/.gitignore

This file was deleted.

5 changes: 0 additions & 5 deletions docs-v2/.prettierrc

This file was deleted.

52 changes: 0 additions & 52 deletions docs-v2/README.md

This file was deleted.

Loading

0 comments on commit 9c3205b

Please sign in to comment.