Skip to content

Build Supabase Artifacts Linux πŸ— #4

Build Supabase Artifacts Linux πŸ—

Build Supabase Artifacts Linux πŸ— #4

name: Build Supabase Artifacts Linux πŸ—
on:
workflow_dispatch:
jobs:
build-matrix:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
steps:
- name: Checkout Repository πŸ“₯
uses: actions/checkout@v4
- name: Setup Node.js 🌐
uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: 'yarn'
- name: Configure AWS CLI for Supabase
env:
AWS_ACCESS_KEY_ID: ${{ secrets.SUPABASE_AWS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.SUPABASE_AWS_SECRET }}
AWS_EC2_METADATA_DISABLED: true
run: |
aws configure set aws_access_key_id $AWS_ACCESS_KEY_ID --profile supabase-dev
aws configure set aws_secret_access_key $AWS_SECRET_ACCESS_KEY --profile supabase-dev
aws configure set region us-east-1 --profile supabase-dev
- name: Install and Build Dependencies 🧢
run: |
yarn
yarn binary:build
- name: Publish binary
env:
AWS_ACCESS_KEY_ID: ${{ secrets.SUPABASE_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.SUPABASE_SECRET_ACCESS_KEY }}
AWS_REGION: 'us-east-1'
run: yarn binary:publish