mirror of
https://github.com/cheveguerra/bot-whatsapp.git
synced 2026-04-18 11:39:15 +00:00
64 lines
1.9 KiB
YAML
64 lines
1.9 KiB
YAML
name: BotWhatsapp Documentation Site
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- dev
|
|
|
|
jobs:
|
|
############ DOCUMENTATION BUILD ############
|
|
build-documentation:
|
|
name: Build Package
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 16.x
|
|
cache: 'yarn'
|
|
registry-url: https://registry.npmjs.org/
|
|
|
|
- run: corepack enable
|
|
|
|
- name: Install NPM Dependencies
|
|
run: yarn install --immutable --network-timeout 300000
|
|
|
|
- name: Build Documentation
|
|
run: cd packages/docs && yarn run build
|
|
|
|
- name: Temporarily save Dist
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: documentation-dist
|
|
path: packages/docs/dist
|
|
|
|
build:
|
|
runs-on: ubuntu-18.04
|
|
needs:
|
|
- build-documentation
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/download-artifact@v3
|
|
with:
|
|
name: documentation-dist
|
|
path: packages/docs/dist
|
|
|
|
- name: Deploy to Netlify
|
|
uses: nwtgck/actions-netlify@v1.2
|
|
with:
|
|
publish-dir: 'packages/docs/dist'
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
deploy-message: 'Deploy from GitHub Actions'
|
|
enable-pull-request-comment: false
|
|
enable-commit-comment: true
|
|
overwrites-pull-request-comment: true
|
|
env:
|
|
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
|
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
|
|
timeout-minutes: 1
|