-
Notifications
You must be signed in to change notification settings - Fork 648
47 lines (39 loc) · 1.41 KB
/
neard_assertion_binary.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Neard Assertion binary release
on:
schedule:
- cron: '23 */8 * * *'
workflow_dispatch:
inputs:
branch:
default: 'master'
description: "Nearcore branch to build and publish"
type: string
required: true
jobs:
binary-release:
name: "Build and publish neard binary"
runs-on: "ubuntu-20.04-16core"
environment: deploy
permissions:
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 }}
- name: Checkout nearcore repository
if: ${{ github.event_name != 'workflow_dispatch'}}
uses: actions/checkout@v4
- name: Neard binary build and upload to S3
run: ./scripts/binary_release.sh assertions-release
- name: Update latest version metadata in S3
run: |
echo $(git rev-parse HEAD) > latest
BRANCH=$(git branch --show-current)
aws s3 cp --acl public-read latest s3://build.nearprotocol.com/nearcore/$(uname)/${BRANCH}/latest-assertions