mirror of
https://github.com/cheveguerra/bot-whatsapp.git
synced 2026-04-21 04:59:15 +00:00
docs(contributing): ⚡ new section by contributors
This commit is contained in:
39
.github/workflows/netlify.yml
vendored
39
.github/workflows/netlify.yml
vendored
@@ -32,37 +32,10 @@ jobs:
|
|||||||
- name: Install NPM Dependencies
|
- name: Install NPM Dependencies
|
||||||
run: yarn install --immutable --network-timeout 300000
|
run: yarn install --immutable --network-timeout 300000
|
||||||
|
|
||||||
- name: Build Documentation
|
- name: Add netlify
|
||||||
run: cd packages/docs && yarn run build
|
run: yarn add netlify-cli -D
|
||||||
|
|
||||||
- name: Temporarily save Dist
|
- name: Build and Deploy
|
||||||
uses: actions/upload-artifact@v3
|
run: |
|
||||||
with:
|
cd packages/docs
|
||||||
name: documentation-dist
|
netlify deploy --build --site ${{ secrets.NETLIFY_SITE_ID }} --auth ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
||||||
path: |
|
|
||||||
packages/docs/dist/
|
|
||||||
packages/docs/.netlify/
|
|
||||||
packages/docs/netlify.toml
|
|
||||||
############ DEPLOY ############
|
|
||||||
deploy:
|
|
||||||
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/
|
|
||||||
packages/docs/.netlify/
|
|
||||||
packages/docs/netlify.toml
|
|
||||||
|
|
||||||
- name: Deploy to netlify
|
|
||||||
uses: netlify/actions/cli@master
|
|
||||||
env:
|
|
||||||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
|
||||||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
|
|
||||||
with:
|
|
||||||
args: deploy --context packages/docs/netlify.toml --build --site ${{ secrets.NETLIFY_SITE_ID }}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user