AutoSitemapUpdater is an open-source Continuous Integration (CI) project designed to automate the maintenance of your sitemap.xml file with each commit.
This tool streamlines the process of keeping your sitemap up to date, ensuring search engines have the latest information about your website's structure and content. Simplify your workflow and enhance your site's search engine optimization (SEO) with AutoSitemapUpdater.
AutoSitemapUpdater is a lightweight tool built with JavaScript (JS) that seamlessly integrates with GitHub Actions. It utilizes YAML (YML) configuration files and manipulates XML files to automatically update your sitemap.xml whenever changes are pushed to your repository.
To set up AutoSitemapUpdater for your project, follow these steps:
- Place the
utils
folder and the.github
folder at the root of your project. - Ensure that your
sitemap.xml
file is located at the root of your project directory. - Configure the
Variables to setup
insidegenerate-sitemap.js
. - Ensure the extension is correct (if you are not using php replace
.php
with.html
).
- On GitHub, open your repository.
- Go to
Settings
. - Then drop
Actions
to openGeneral
. - In
Workflow permissions
, toggleRead and write permissions
. - Then, enable
Allow GitHub Actions to create and approve pull requests
. - Don't forget to click on
Save
button below.
That's it! With these simple setup instructions, AutoSitemapUpdater will handle the rest, keeping your sitemap.xml file up to date with each commit.
If you would like to contribute to this project, please follow these guidelines:
- Fork the repository
- Create a new branch:
git checkout -b my-feature
- Make your changes and commit them:
git commit -am 'Add some feature'
- Push the branch to your forked repository:
git push origin my-feature
- Submit a pull request
This project is licensed under the MIT License. See the LICENSE file for more information.