pre-commit add prettier #113
Workflow file for this run
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: Render HTML on Changes | |
| on: | |
| push: | |
| branches: | |
| - main | |
| # paths: | |
| # - '**.py' | |
| # - 'layouts/**' | |
| # - 'docs/styles.css' | |
| # - 'docs/script.js' | |
| pull_request: | |
| types: [closed] | |
| workflow_dispatch: | |
| jobs: | |
| render-html: | |
| if: ${{ github.event_name != 'pull_request' || (github.event.pull_request && github.event.pull_request.merged == true) }} | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout main branch | |
| uses: actions/checkout@v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.14.2' | |
| architecture: 'x64' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e . | |
| - name: Run render.py | |
| run: python render.py | |
| - name: Deploy to GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./docs | |
| publish_branch: gh-pages | |
| force_orphan: true | |
| user_name: 'github-actions[bot]' | |
| user_email: 'github-actions[bot]@users.noreply.github.com' | |
| commit_message: 'chore: deploy from new update' |