Skip to content

Merge pull request #6 from gbh-tech/chore-RI-4198-fix-compile-tesk-re… #8

Merge pull request #6 from gbh-tech/chore-RI-4198-fix-compile-tesk-re…

Merge pull request #6 from gbh-tech/chore-RI-4198-fix-compile-tesk-re… #8

Workflow file for this run

name: 🚀 Deploy to S3
on:
push:
branches:
- main
env:
BUCKET: 's3://gbh-utils'
NAME: 'dot-env-generator'
jobs:
deploy-s3:
runs-on: ubuntu-latest
strategy:
matrix:
os: [linux-x64, linux-arm64, windows-x64, darwin-arm64, darwin-x64]
steps:
- name: 💻 Checkout current code ref
uses: actions/checkout@v4
- name: 🟢 Configure Bun on runner
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: 🔵 Install Task
uses: arduino/setup-task@v2
- name: 🟡 Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ vars.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: 'us-east-1'
- name: 📦 Install package dependencies using lockfile
run: bun install --frozen-lockfile
- name: 🔨 Run build
run: bun run build
- name: 🔨 Compile binary for supported platforms
run: |
task compile
task compress
- name: 🚀 Upload binaries to S3
run: aws s3 cp ./dist ${BUCKET}/${NAME} --recursive --acl public-read