Welcome to the SiteGround Speed Optimizer Config Saver repository! This GitHub Action saves your SiteGround Speed Optimizer configuration to a versioned JSON file in your repository. This tool helps you manage configuration drift effectively and ensures your settings are always backed up and versioned.
- Automatic Backups: The action automatically saves your SiteGround Speed Optimizer settings to a JSON file.
- Version Control: Each configuration change is tracked, allowing you to revert to previous settings easily.
- Simple Integration: Integrate the action into your existing GitHub workflows with minimal effort.
- Detect Configuration Drift: Monitor changes in your configuration and address them proactively.
To use the SiteGround Speed Optimizer Config Saver, you need to add it to your GitHub Actions workflow. Follow these steps:
- Create a new workflow file in your repository, typically located in
.github/workflows/
. - Use the following code snippet to set up the action:
name: Save SiteGround Config
on:
push:
branches:
- main
jobs:
save-config:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Save SiteGround Speed Optimizer Config
uses: BigSpace52/github-action-siteground-speed-optimizer-config-saver@v1.0.0
with:
siteground_api_key: ${{ secrets.SITEGROUND_API_KEY }}
- Ensure you have the necessary API key stored in your repository secrets.
Once the action is set up, it will run automatically on every push to the main
branch. If you want to run it on different events, adjust the on
section in your workflow file accordingly.
You can trigger the action manually or through scheduled events. To run the action manually, you can use the "Run workflow" button in the GitHub Actions tab of your repository.
You can customize the action's behavior by passing different inputs. Here are the main configuration options:
siteground_api_key
: Your SiteGround API key. This is required for the action to access your settings.output_file
: The name of the JSON file where the configuration will be saved. Default issiteground-config.json
.
Example:
- name: Save SiteGround Speed Optimizer Config
uses: BigSpace52/github-action-siteground-speed-optimizer-config-saver@v1.0.0
with:
siteground_api_key: ${{ secrets.SITEGROUND_API_KEY }}
output_file: custom-config.json
We welcome contributions to improve this action. Here’s how you can help:
- Fork the Repository: Click the "Fork" button on the top right corner of the page.
- Create a Branch: Use
git checkout -b feature/YourFeatureName
to create a new branch. - Make Changes: Implement your feature or fix.
- Commit Changes: Use
git commit -m "Description of your changes"
to commit. - Push to Your Branch: Use
git push origin feature/YourFeatureName
. - Create a Pull Request: Go to the original repository and click "New Pull Request".
This project is licensed under the MIT License. See the LICENSE file for details.
For any issues or questions, please check the Releases section. You can also open an issue in the repository for help.
Thank you for using the SiteGround Speed Optimizer Config Saver! For the latest releases, please visit here and download the latest version to get started.