Skip to content

Merge pull request #3 from gbh-tech/ci-RI-4198-fix-release-it-workflow #3

Merge pull request #3 from gbh-tech/ci-RI-4198-fix-release-it-workflow

Merge pull request #3 from gbh-tech/ci-RI-4198-fix-release-it-workflow #3

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: πŸ”¨ Compile binary for supported platforms
run: |
task build
task compress
- name: πŸš€ Upload binaries to S3
run: aws s3 cp ./dist ${BUCKET}/${NAME} --recursive --acl public-read