Skip to content

Ensure submodule is correctly initialized #14

Ensure submodule is correctly initialized

Ensure submodule is correctly initialized #14

name: Update README
on:
push:
branches:
- main
permissions:
contents: write
jobs:
update-readme:
runs-on: ubuntu-latest
steps:
- name: Checkout repository content
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests
pip install beautifulsoup4
- name: Run README update script
run: python utilities/scripts/update_readme.py
- name: Run BUILD docs script
run: python utilities/scripts/build_docs.py
- name: Commit and push changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --local user.name "GitHub Actions"
git config --local user.email "[email protected]"
git add difficulty_cache.json
git add README.md
git add docs/index.html
# Debugging output
git status
git commit -m "📝 DOCS: Automatic CI/CD Update of README."
git push
deploy-to-pages:
needs: update-readme
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs