Skip to content

Update main.yml

Update main.yml #30

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: |
API_JS_PATH=Indic-Input-Tool-UI/js/api.js
sed -i "1s|^|const config = { TRANSLITERATE_API: '${{ secrets.API_URL }}', API_KEY: '${{ secrets.API_KEY }}' };\n|" $API_JS_PATH