Fix/workflow improvements #3627
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: | |
| pull_request: | |
| branches: [ main ] | |
| push: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| # Cancel older runs on the same PR/branch | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| permissions: {} # lock everything by default (least-privilege) | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read # least-privilege for this job only | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 # Official GitHub action; intentionally not pinned so we stay on the latest v5.x | |
| - name: Build docs | |
| uses: Consensys/github-actions/docs-build@main |