Weekly Rebuild #31
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: Weekly Rebuild | |
| on: | |
| # Run weekly on Mondays at 2:00 AM UTC | |
| schedule: | |
| - cron: '0 2 * * 1' | |
| # Allow manual trigger | |
| workflow_dispatch: | |
| jobs: | |
| rebuild: | |
| runs-on: ubuntu-latest-8-cores | |
| timeout-minutes: 360 # 6 hours max | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| cache: "npm" | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run daily rebuild | |
| env: | |
| AUTO_RUN: "1" | |
| GCLOUD_SERVICE_ACCOUNT_KEY: ${{ secrets.GCLOUD_SERVICE_ACCOUNT_KEY }} | |
| CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| run: | | |
| yes y | bash ./toool/s/predeploy-checks.sh --auto-resume | |
| - name: Upload artifacts on failure | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: rebuild-logs-${{ github.run_number }} | |
| path: | | |
| docs/ | |
| data/ | |
| retention-days: 7 |