diff --git a/.github/workflows/deploy-backend-dev.yml b/.github/workflows/deploy-backend-dev.yml index c14b4d371..2a16c08ea 100644 --- a/.github/workflows/deploy-backend-dev.yml +++ b/.github/workflows/deploy-backend-dev.yml @@ -28,7 +28,9 @@ jobs: - name: Build backend and copy zip to S3 run: | apt-get update && apt-get install -y zip sed - sed -i "s/RECAPTCHA_CONFIG_JSON_BASE64/${{ secrets.RECAPTCHA_CONFIG_JSON_BASE64 }}/g" utils/helper.go + echo "${{ secrets.RECAPTCHA_CONFIG_JSON_BASE64 }}" | base64 -d > temp.json + sed -i "s/RECAPTCHA_CONFIG_JSON_BASE64/$(< temp.json)/g" utils/helper.go + rm temp.json GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o main main.go zip canopas_serverless_dev_${{ github.sha }}.zip main aws s3 cp canopas_serverless_dev_${{ github.sha }}.zip s3://canopas-lambda-handlers