-
Notifications
You must be signed in to change notification settings - Fork 572
49 lines (42 loc) · 1.38 KB
/
deploy-brew.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
48
49
name: Deploy Brew Tap Release
on:
workflow_dispatch:
inputs:
refToBuild:
type: string
jobs:
Deploy:
name: Deploy
runs-on: macos-13
steps:
- name: Check out Git repository
uses: actions/checkout@v4
with:
ref: ${{ inputs.refToBuild }}
- name: Cache Rust
uses: Swatinem/rust-cache@v2
with:
shared-key: nodejs
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'yarn'
- name: Build Ironfish CLI
run: ./ironfish-cli/scripts/build.sh
- name: Deploy Ironfish CLI Brew
run: ./ironfish-cli/scripts/deploy-brew.sh
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
BREW_GITHUB_USERNAME: ${{ secrets.BREW_GITHUB_USERNAME }}
BREW_GITHUB_TOKEN: ${{ secrets.BREW_GITHUB_TOKEN }}
- name: Deploy Ironfish CLI Brew to R2
run: ./ironfish-cli/scripts/deploy-brew.sh
env:
AWS_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}
BREW_GITHUB_USERNAME: ${{ secrets.BREW_GITHUB_USERNAME }}
BREW_GITHUB_TOKEN: ${{ secrets.BREW_GITHUB_TOKEN }}
AWS_DEFAULT_REGION: auto
UPLOAD_TO_R2: true