mirror of
https://github.com/cheveguerra/bot-whatsapp.git
synced 2026-04-20 20:49:15 +00:00
ci: 🎨 added new yml for deplooy netlify
This commit is contained in:
46
.github/workflows/netlify-dev.yml
vendored
Normal file
46
.github/workflows/netlify-dev.yml
vendored
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
name: 📄 Desplegando documentacion
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- 'feat/docs-**'
|
||||||
|
- 'fix/docs-**'
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'feat/docs-**'
|
||||||
|
- 'fix/docs-**'
|
||||||
|
|
||||||
|
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: Add netlify
|
||||||
|
run: yarn add netlify-cli -D
|
||||||
|
|
||||||
|
- name: Create .env build file
|
||||||
|
run: |
|
||||||
|
touch packages/docs/.env
|
||||||
|
echo VITE_GITHUB_TOKEN=${{ secrets.COLLABORATORS_TOKEN }} >> packages/docs/.env
|
||||||
|
|
||||||
|
- name: Build and Deploy
|
||||||
|
run: |
|
||||||
|
cd packages/docs
|
||||||
|
netlify deploy --build --site ${{ secrets.NETLIFY_SITE_ID }} --auth ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
||||||
11
.github/workflows/netlify.yml
vendored
11
.github/workflows/netlify.yml
vendored
@@ -1,14 +1,9 @@
|
|||||||
name: 📄 Desplegando documentacion
|
name: 📄 (PROD) Desplegando documentacion
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- 'feat/docs-**'
|
|
||||||
- 'fix/docs-**'
|
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 'feat/docs-**'
|
- next-release
|
||||||
- 'fix/docs-**'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
############ DOCUMENTATION BUILD ############
|
############ DOCUMENTATION BUILD ############
|
||||||
@@ -43,4 +38,4 @@ jobs:
|
|||||||
- name: Build and Deploy
|
- name: Build and Deploy
|
||||||
run: |
|
run: |
|
||||||
cd packages/docs
|
cd packages/docs
|
||||||
netlify deploy --build --site ${{ secrets.NETLIFY_SITE_ID }} --auth ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
netlify deploy --prod --build --site ${{ secrets.NETLIFY_SITE_ID }} --auth ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user