Merge pull request #387 from autoscrape-labs/feat/extractor #194
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy site + docs | |
| on: | |
| push: | |
| branches: [main] | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Code Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.x' | |
| - name: Install Dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install mkdocs mkdocs-material pymdown-extensions mkdocstrings[python] mkdocs-static-i18n | |
| # Build MkDocs em pasta temporária | |
| - name: Build MkDocs into temp folder | |
| run: mkdocs build --site-dir temp_docs | |
| # Criar estrutura final do site | |
| - name: Prepare final site | |
| run: | | |
| mkdir -p site/docs | |
| mkdir -p site/images | |
| cp -r temp_docs/* site/docs/ | |
| cp -r public/* site/ | |
| - name: Deploy to GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./site | |
| cname: pydoll.tech |