forked from airbytehq/airbyte
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify the OSS documentation deploy system (airbytehq#2670) (airbyt…
…ehq#18436) + Updates tools/bin/deploy_docusaurus to work on Github Runners + Adds 'Deploy docs.airbyte.com' Github workflow
- Loading branch information
1 parent
5868bb8
commit 3fbf8f7
Showing
2 changed files
with
36 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,37 @@ | ||
name: Deploy docs.airbyte.com [DUMMY workflow] | ||
name: Deploy docs.airbyte.com | ||
|
||
on: | ||
## XXX uncomment the following when this code gets in good shape | ||
#push: | ||
# branches: | ||
# - master | ||
# paths: | ||
# - 'docs/**' | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- 'docs/**' | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
dummy-job: | ||
name: A placeholder job | ||
name: Deploy Docs Assets | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: A placeholder step | ||
shell: bash | ||
run: |- | ||
echo "Hello from 'Deploy Docs' workflow!" | ||
- name: Check out the repository | ||
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
# Node.js is needed for Yarn | ||
- name: Setup Yarn | ||
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16.14.0' | ||
cache: 'yarn' | ||
cache-dependency-path: docusaurus | ||
|
||
- name: Run Docusaurus | ||
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: ./tools/bin/deploy_docusaurus |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters