libraries: Add Python driver (#120) #217
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
name: Deploy docs | |
on: | |
push: | |
branches: | |
- next | |
jobs: | |
build: | |
name: Deploy docs | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v1 | |
- name: Setup Node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 18.x | |
- name: Cache Node Modules | |
id: cache-node-modules | |
uses: actions/cache@v2 | |
with: | |
path: node_modules | |
key: node-modules-${{ hashFiles('package-lock.json') }} | |
- name: Install Dependencies | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: yarn install | |
- name: Build docs | |
run: yarn build | |
- name: Deploy docs | |
env: | |
BOT_USER: ${{ secrets.BOT_INIT_USER }} | |
BOT_MAIL: ${{ secrets.BOT_INIT_MAIL }} | |
BOT_API: ${{ secrets.BOT_API_CALL }} | |
GIT_SHA: ${{ env.GITHUB_SHA }} | |
run: | | |
chmod +x deploy.sh | |
bash deploy.sh |