Skip to content

Update main.yml

Update main.yml #35

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: List all files in the repository
run: |
ls -R $GITHUB_WORKSPACE
- name: Add config variable
run: |
cd $GITHUB_WORKSPACE/Indic-Input-Tool-UI/js
if [ -f "api.js" ]; then
sed -i "1s|^|const config = { TRANSLITERATE_API: \"\${{ secrets.API_URL }}\", API_KEY: \"\${{ secrets.API_KEY }}\" };\n|" $GITHUB_WORKSPACE/js/api.js
else
echo "api.js file not found"
ls -R
exit 1
fi