build #123
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: build | |
| on: | |
| schedule: | |
| - cron: "0 5 * * *" # every day at 5am | |
| workflow_dispatch: # allows manual triggering of the workflow | |
| # Allow GITHUB_TOKEN to deploy to GitHub Pages | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | |
| # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| - name: Install Python dependencies | |
| run: uv sync | |
| - name: Install browser | |
| run: uv run playwright install chromium --with-deps | |
| - name: Test | |
| run: uv run pytest | |
| - name: Build | |
| run: uv run eggtray build | |
| env: | |
| GITHUB_API_KEY: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Report | |
| run: uv run eggtray report | |
| env: | |
| GITHUB_CLIENT_ID: ${{ secrets.GH_CLIENT_ID }} | |
| GITHUB_INSTALLATION_ID: ${{ secrets.GH_INSTALLATION_ID }} | |
| GITHUB_PRIVATE_KEY: ${{ secrets.GH_PRIVATE_KEY }} | |
| - name: Setup Pages | |
| uses: actions/configure-pages@v5 | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v4 | |
| with: | |
| path: ./output | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |