Skip to content

Update main.yml

Update main.yml #1

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Add config variable
run: |
sed -i '' '1s|^|const config = { API_URL: "${{ secrets.API_URL }}", API_KEY: "${{ secrets.API_KEY }}" };\n|' js/api.js