Neard custom binary release #36
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: Neard custom binary release | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| branch: | |
| default: 'master' | |
| description: "Nearcore branch to build and publish" | |
| type: string | |
| required: true | |
| release-type: | |
| default: 'release' | |
| description: "Release type, see binary_release.sh for more details" | |
| type: choice | |
| options: | |
| - release | |
| - nightly-release | |
| - assertions-release | |
| - test-features-release | |
| required: true | |
| jobs: | |
| binary-release: | |
| name: "Build and publish neard binary" | |
| runs-on: warp-ubuntu-2404-x64-16x | |
| environment: deploy | |
| permissions: | |
| contents: read | |
| id-token: write # required to use OIDC authentication | |
| steps: | |
| - name: Configure AWS Credentials | |
| uses: aws-actions/configure-aws-credentials@v4 | |
| with: | |
| role-to-assume: arn:aws:iam::590184106962:role/GitHubActionsRunner | |
| aws-region: us-west-1 | |
| - name: Checkout ${{ github.event.inputs.branch }} branch | |
| if: ${{ github.event_name == 'workflow_dispatch'}} | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.event.inputs.branch }} | |
| persist-credentials: false | |
| - name: Neard binary build and upload to S3 | |
| run: ./scripts/binary_release.sh ${{ github.event.inputs.release-type }} |