chore: built chaindata #3925
This file contains 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: Chaindata Build | |
on: | |
# runs after each push to current branch | |
push: | |
# can be run manually from the `Actions` tab | |
workflow_dispatch: | |
# Sets permissions of the GITHUB_TOKEN to allow pushing commits | |
permissions: | |
contents: write | |
id-token: write | |
concurrency: | |
# only run 1 job per branch/pr/etc at a time | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
jobs: | |
build-main: | |
name: 'Build main' | |
uses: ./.github/workflows/build-jobs.yml | |
if: github.ref_name == 'main' | |
secrets: inherit | |
# Sets permissions of the GITHUB_TOKEN to allow pushing commits | |
permissions: | |
contents: write | |
id-token: write | |
build-pr: | |
name: 'Build PR' | |
uses: ./.github/workflows/build-jobs.yml | |
if: github.ref_name != 'main' | |
with: | |
environment: 'pr-builds' | |
secrets: inherit | |
# Sets permissions of the GITHUB_TOKEN to allow pushing commits | |
permissions: | |
contents: write | |
id-token: write |