forked from near/nearcore
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (28 loc) · 974 Bytes
/
mac_m1_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
name: MacOS-m1 binary release
on:
workflow_dispatch:
push:
branches:
- master
tags:
- '[0-9]+.[0-9]+.[0-9]+*'
jobs:
build_binary:
runs-on: macos-latest-xlarge
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 repository for master branch
# In case of master branch we want to checkout with depth 1
if: ${{ github.event_name != 'workflow_dispatch' && github.event_name != 'release'}}
uses: actions/checkout@v4
- name: Neard binary build and upload to S3
run: ./scripts/mac-release.sh
- name: Neard binary build and upload to S3
run: ./scripts/mac-release.sh nightly-release