Skip to content

Commit

Permalink
fix: webpack and github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Michel Fernandes committed Jul 30, 2020
2 parents 1f1c5b7 + 6defe17 commit ec0ec95
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,20 @@ jobs:
with:
submodules: true

- name: set environment variables
uses: allenevans/set-env@v1.0.0
with:
overwrite: false
- name: Install dependencies
run: npm install

- name: Replacing API URL
run: sed -i 's|process.env.API_URL|"'$API_URL'"|g' src/data/endpoints.js
env:
API_URL: ${{ secrets.API_URL }}
API_VERSION: ${{ secrets.API_VERSION }}

- name: Install dependencies
run: npm install | printenv
- name: Replacing API Version
run: sed -i 's|process.env.API_VERSION|"'$API_VERSION'"|g' src/data/endpoints.js
env:
API_VERSION: ${{ secrets.API_VERSION }}

- name: Building the static site
- name: Build local
run: npm run build

- name: Build And Deploy
Expand Down

0 comments on commit ec0ec95

Please sign in to comment.