Skip to content

Commit

Permalink
Change
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-dharti-r committed Apr 24, 2024
1 parent a125dac commit 7d7edee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/deploy-backend-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ jobs:
env:
RECAPTCHA_CONFIG_JSON_BASE64: ${{ secrets.RECAPTCHA_CONFIG_JSON_BASE64 }}
run: |
sed -i "s/RECAPTCHA_CONFIG_JSON_BASE64/$(echo "$RECAPTCHA_CONFIG_JSON_BASE64" | sed -e 's/[\/&]/\\&/g')/g" utils/helper.go
escaped_value=$(printf '%s\n' "$RECAPTCHA_CONFIG_JSON_BASE64" | sed -e 's/[\/&]/\\&/g')
sed -i "s/RECAPTCHA_CONFIG_JSON_BASE64/$escaped_value/g" utils/helper.go
apt-get update && apt-get install -y zip
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o main main.go
zip canopas_serverless_dev_${{ github.sha }}.zip main
Expand Down

0 comments on commit 7d7edee

Please sign in to comment.