Merge pull request #125 from skytable/0.8.4/init #226
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@v2 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
- name: Cache Node Modules | |
id: cache-node-modules | |
uses: actions/cache@v3 | |
with: | |
path: node_modules | |
key: node-modules-${{ hashFiles('package-lock.json') }} | |
restore-keys: | | |
node-modules- | |
- name: Install Dependencies | |
if: steps.cache-node-modules.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: ${{ github.sha }} | |
run: | | |
chmod +x deploy.sh | |
bash deploy.sh |