Skip to content
Permalink
Browse files

Fix workflows

  • Loading branch information...
rafaelgssa committed Sep 29, 2019
1 parent 5ec119f commit a1a2311ee70dd2b9b1bb92da1c3dded641055f05
Showing with 2 additions and 2 deletions.
  1. +2 −2 .github/workflows/production.yml
@@ -16,10 +16,10 @@ jobs:
run: npm ci
- if: github.repository == 'rafaelgssa/traktflix'
name: 'Generate config.json'
run: 'echo "{ \"development\": { \"clientId\": \"${{ secrets.TRAKT_CLIENT_ID }}\", \"clientSecret\": \"${{ secrets.TRAKT_CLIENT_SECRET }}\", \"rollbarToken\": \"${{ secrets.ROLLBAR_TOKEN }}\", \"tmdbApiKey\": \"${{ secrets.TMDB_API_KEY }}\", \"chromeExtensionKey\": \"${{ secrets.CHROME_EXTENSION_KEY }}\", \"firefoxExtensionId\": \"${{ secrets.FIREFOX_EXTENSION_ID }}\" } }" >> ./config.json'
run: 'echo "{ \"production\": { \"clientId\": \"${{ secrets.TRAKT_CLIENT_ID }}\", \"clientSecret\": \"${{ secrets.TRAKT_CLIENT_SECRET }}\", \"rollbarToken\": \"${{ secrets.ROLLBAR_TOKEN }}\", \"tmdbApiKey\": \"${{ secrets.TMDB_API_KEY }}\", \"chromeExtensionKey\": \"${{ secrets.CHROME_EXTENSION_KEY }}\", \"firefoxExtensionId\": \"${{ secrets.FIREFOX_EXTENSION_ID }}\" } }" >> ./config.json'
- if: github.repository != 'rafaelgssa/traktflix'
name: 'Generate empty config.json'
run: 'echo "{ \"development\": { \"clientId\": \"\", \"clientSecret\": \"\", \"rollbarToken\": \"\", \"tmdbApiKey\": \"\", \"chromeExtensionKey\": \"\", \"firefoxExtensionId\": \"\" } }" >> ./config.json'
run: 'echo "{ \"production\": { \"clientId\": \"\", \"clientSecret\": \"\", \"rollbarToken\": \"\", \"tmdbApiKey\": \"\", \"chromeExtensionKey\": \"\", \"firefoxExtensionId\": \"\" } }" >> ./config.json'
- name: 'Run build'
run: npm run build
- name: 'Zip dist'

0 comments on commit a1a2311

Please sign in to comment.
You can’t perform that action at this time.