Skip to content
This repository was archived by the owner on Jan 14, 2024. It is now read-only.
/ sitemap-ping-action Public archive

Ping search engines after deployments with Github actions

License

Notifications You must be signed in to change notification settings

atymic/sitemap-ping-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

No longer maintained

Google (the last remaining engine) has removed the ping endpoint, thus this repo is being archived.

Sitemap Ping GitHub Action

This actions automatically pings search engines to notify them that your site has changed. For example, after deploying your static site you may want to notify search engines that it's been updated.

Supported Search Engines

  • Google

Feel free to PR more.

Using the action

In your workflow definition file, add the following step. This should be after you've deployed your site. You'll need to add the SITEMAP_URL secret in the repo's secrets management as well (or you could hardcode it in the pipeline).

# .github/workflows/workflow.yml
jobs:
    deployment_job:
        ...
        steps:
            - actions/checkout@v1
            - run: deploy # Deploy your site
            - uses: atymic/sitemap-ping-action@master
              with:
                  sitemap-url: ${{ secrets.SITEMAP_URL }}
            - ... other steps

Contributing

Javascript Actions Documentation: https://help.github.com/en/articles/creating-a-javascript-action

  • Fork/Clone the repo.
  • Run yarn install to fetch dependencies
  • Make changes
  • Update the README with any changes (if required)
  • Create a PR without building the code (it's too hard to review the compiled code. I'll compile it before releasing)

Licence

Code released under the MIT license.

About

Ping search engines after deployments with Github actions

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •