Skip to content

Commit

Permalink
Añadido workflow para Indexación
Browse files Browse the repository at this point in the history
  • Loading branch information
TeenBiscuits committed Nov 16, 2024
1 parent ab928c0 commit a74b76e
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 0 deletions.
61 changes: 61 additions & 0 deletions .github/workflows/indexing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: 🔎 Indexación en motores de búsqueda

on:
push:
branches: ["main"]
workflow_dispatch:

jobs:
wait-for-vercel-deployment:
name: 🔼 Esperar el deploy en Vercel
if: github.repository == 'TeenBiscuits/Pasame-Codigo'
runs-on: ubuntu-latest
steps:
- name: ⌛ Esperar deploy
# Unly
# MIT
# https://github.com/UnlyEd/github-action-await-vercel
uses: UnlyEd/github-action-await-vercel@v1
id: await-vercel
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
with:
deployment-url: pc.pablopl.dev
timeout: 10
poll-interval: 1

- name: Display deployment status
run: "echo The deployment at ${{ fromJson(steps.await-vercel.outputs.deploymentDetails).url }} is ${{ fromJson(steps.await-vercel.outputs.deploymentDetails).readyState }}"

indexnow:
name: 🔎 Bing IndexNow
if: github.repository == 'TeenBiscuits/Pasame-Codigo'
needs: [wait-for-vercel-deployment]
runs-on: ubuntu-latest
steps:
- name: ⬆️ Subir Sitemap
# Bojie Yang
# MIT
# https://github.com/bojieyang/indexnow-action
uses: bojieyang/indexnow-action@v2
with:
sitemap-location: 'https://pc.pablopl.dev/sitemap-index.xml'
key: ${{ secrets.INDEXNOW_KEY }}
key-location: 'https://pc.pablopl.dev/${{ secrets.INDEXNOW_KEY }}.txt'
endpoint: www.bing.com # Es el default
failure-strategy: error

google-indexing:
name: 🔎 Google Index
if: github.repository == 'TeenBiscuits/Pasame-Codigo'
needs: [wait-for-vercel-deployment]
runs-on: ubuntu-latest
steps:
- name: ⬆️ Subir Urls
# Robin Genz
# MIT
# https://github.com/robingenz/google-indexing-action
uses: robingenz/action-google-indexing@v1
with:
siteUrl: 'pc.pablopl.dev'
gcpServiceAccountKey: ${{ secrets.GCP_SA_KEY }}
9 changes: 9 additions & 0 deletions LICENSES/MIT.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
MIT License

Copyright (c) <year> <copyright holders>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

0 comments on commit a74b76e

Please sign in to comment.