Update V8 Tools #40539
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
| # Copyright 2020 the V8 project authors. All rights reserved. | |
| # Use of this source code is governed by a BSD-style license that can be | |
| # found in the LICENSE file. | |
| name: Update V8 Tools | |
| on: | |
| push: | |
| branches: | |
| - main | |
| schedule: | |
| # Rebuild tools every hour. | |
| - cron: '0 * * * *' | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| name: Build and Deploy V8 Tools | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - uses: actions/setup-node@v4 | |
| - name: Checkout main Branch | |
| uses: actions/checkout@v4 | |
| - name: Mark the github workspace as safe directory | |
| run: git config --global --add safe.directory $GITHUB_WORKSPACE | |
| - name: Checkout gh-pages | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: gh-pages | |
| path: gen | |
| - name: Build V8 Tools | |
| run: python3 -u update.py | |
| - name: Prevent auto-deploy | |
| run: touch -a gen/.nojekyll | |
| - name: Deploy | |
| uses: JamesIves/github-pages-deploy-action@v4 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| branch: gh-pages | |
| folder: gen | |
| git-config-name: V8 Tools Updater | |
| git-config-email: cbruni@chromium.org | |
| commit-message: V8 Tools Update |