mirror of
https://github.com/cheveguerra/bot-whatsapp.git
synced 2026-04-20 20:49:15 +00:00
docs: 🎨 updated readme
docs: 🎨 updated readme
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 }}
|
||||||
53
.github/workflows/netlify.yml
vendored
53
.github/workflows/netlify.yml
vendored
@@ -1,10 +1,9 @@
|
|||||||
name: 📄 Desplegando documentacion
|
name: 📄 (PROD) Desplegando documentacion
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 'feat/docs-**'
|
- next-release
|
||||||
- 'fix/docs-**'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
############ DOCUMENTATION BUILD ############
|
############ DOCUMENTATION BUILD ############
|
||||||
@@ -28,41 +27,15 @@ 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: Create .env build file
|
||||||
uses: actions/upload-artifact@v3
|
run: |
|
||||||
with:
|
touch packages/docs/.env
|
||||||
name: documentation-dist
|
echo VITE_GITHUB_TOKEN=${{ secrets.COLLABORATORS_TOKEN }} >> packages/docs/.env
|
||||||
path: |
|
|
||||||
packages/docs/dist/
|
|
||||||
packages/docs/netlify.toml
|
|
||||||
packages/docs/.netlify
|
|
||||||
############ DEPLOY ############
|
|
||||||
deploy:
|
|
||||||
runs-on: ubuntu-18.04
|
|
||||||
needs:
|
|
||||||
- build-documentation
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- uses: actions/download-artifact@v3
|
- name: Build and Deploy
|
||||||
with:
|
run: |
|
||||||
name: documentation-dist
|
cd packages/docs
|
||||||
path: |
|
netlify deploy --prod --build --site ${{ secrets.NETLIFY_SITE_ID }} --auth ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
||||||
packages/docs/dist/
|
|
||||||
packages/docs/netlify.toml
|
|
||||||
packages/docs/.netlify
|
|
||||||
|
|
||||||
- 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'
|
|
||||||
netlify-config-path: 'packages/docs/netlify.toml'
|
|
||||||
env:
|
|
||||||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
|
||||||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
|
|
||||||
timeout-minutes: 1
|
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
[](https://github.com/leifermendez/bot-whatsapp/actions/workflows/ci.yml)
|
[](https://github.com/leifermendez/bot-whatsapp/actions/workflows/ci.yml)
|
||||||
[](http://commitizen.github.io/cz-cli/)
|
[](http://commitizen.github.io/cz-cli/)
|
||||||
--------
|
--------
|
||||||
🐤 Tablero de tareas : [https://github.com/users/leifermendez/projects/4/views/1](https://github.com/users/leifermendez/projects/4/views/1)
|
## Documentacion
|
||||||
|
[https://bot-whatsapp.netlify.app/](https://bot-whatsapp.netlify.app/)
|
||||||
|
|
||||||
🦊 Documentación: [https://bot-whatsapp-codigoencasa.pages.dev/](https://bot-whatsapp-codigoencasa.pages.dev/)
|
🐤 Tablero de tareas : [https://github.com/users/leifermendez/projects/4/views/1](https://github.com/users/leifermendez/projects/4/views/1)
|
||||||
Video como hacer PR: https://youtu.be/Lxt8Acob6aU
|
|
||||||
|
|
||||||
🚀 __Roadmap:__ [https://github.com/users/leifermendez/projects/4/views/1](https://github.com/users/leifermendez/projects/4/views/1)
|
🚀 __Roadmap:__ [https://github.com/users/leifermendez/projects/4/views/1](https://github.com/users/leifermendez/projects/4/views/1)
|
||||||
|
|
||||||
|
|||||||
@@ -14,10 +14,10 @@ export default component$(
|
|||||||
<a href={props.user.html_url} target="_blank">
|
<a href={props.user.html_url} target="_blank">
|
||||||
<img
|
<img
|
||||||
class="w-16 h-16 rounded-full mx-auto object-cover"
|
class="w-16 h-16 rounded-full mx-auto object-cover"
|
||||||
src={props.user.avatar_url}
|
src={props.user.avatar_url + '&s=80'}
|
||||||
alt={props.user.login}
|
alt={props.user.login}
|
||||||
width="384"
|
width="80"
|
||||||
height="512"
|
height="80"
|
||||||
/>
|
/>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
|||||||
@@ -10,9 +10,9 @@ import { RequestHandlerNetlify } from '@builder.io/qwik-city/middleware/netlify-
|
|||||||
import { GITHUB_TOKEN } from './docs/constant'
|
import { GITHUB_TOKEN } from './docs/constant'
|
||||||
|
|
||||||
export const onGet: RequestHandlerNetlify = async ({ platform }) => {
|
export const onGet: RequestHandlerNetlify = async ({ platform }) => {
|
||||||
console.log(`[🚩 platform]: `, platform)
|
|
||||||
const CHECK_GITHUB_TOKEN =
|
const CHECK_GITHUB_TOKEN =
|
||||||
(platform as any)?.['GITHUB_TOKEN'] ?? GITHUB_TOKEN
|
(platform as any)?.['GITHUB_TOKEN'] ?? GITHUB_TOKEN
|
||||||
|
console.log(`[🚩 platform]: `, GITHUB_TOKEN)
|
||||||
const data = await fetchGithub(CHECK_GITHUB_TOKEN)
|
const data = await fetchGithub(CHECK_GITHUB_TOKEN)
|
||||||
return data
|
return data
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user