Repository navigation
Add Champions Type Badge and Icons (#286) #51
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
| # Automated Sprite Audit & Zero-Commit GitHub Pages Deployment | |
| name: Audit Sprites & Deploy to Pages | |
| on: | |
| # Runs on pushes and PR merges targeting the master branch | |
| push: | |
| branches: ["master"] | |
| # Allows manual runs from the Actions tab | |
| workflow_dispatch: | |
| # Sets permissions of the GITHUB_TOKEN to deploy to GitHub Pages without modifying git history | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: false | |
| jobs: | |
| audit-and-deploy: | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.10' | |
| - name: Install audit dependencies | |
| run: | | |
| pip install pillow jinja2 | |
| - name: Run Sprite Audit & Build Dashboard | |
| run: | | |
| python scripts/tracker/sprite_audit.py --category all --include-forms --build-index | |
| - name: Setup Pages | |
| uses: actions/configure-pages@v6 | |
| - name: Upload Pages artifact | |
| uses: actions/upload-pages-artifact@v5 | |
| with: | |
| path: './website' | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v5 | |