Build Supabase Artifacts Linux π #4
This file contains 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: 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 | |