Skip to content

Merge pull request #292 from splitio/INFRA-8251-1 #4

Merge pull request #292 from splitio/INFRA-8251-1

Merge pull request #292 from splitio/INFRA-8251-1 #4

Workflow file for this run

name: cd
on:
push:
branches:
- master
pull_request:
branches:
- master
permissions:
contents: read
id-token: write
jobs:
build-publish:
name: Build and publish to S3
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.23.3'
- name: Create build folder
run: mkdir -p build
- name: Execute build
run: make release_assets
- name: Configure AWS credentials
if: ${{ github.event_name == 'push' }}
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::825951051969:role/gha-downloads-role
aws-region: us-east-1
- name: Deploy to S3
if: ${{ github.event_name == 'push' }}
run: aws s3 sync $SOURCE_DIR s3://$BUCKET
env:
BUCKET: downloads.split.io
SOURCE_DIR: ./build