Skip to content

Commit

Permalink
Add Release Drafter and use hostedDomain ENV (#161)
Browse files Browse the repository at this point in the history
* Add release drafter GH support
* hostedDomain should use ENV
  • Loading branch information
whomwah authored May 7, 2020
1 parent ac82c07 commit 602e961
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name-template: 'v$NEXT_PATCH_VERSION 🌈'
tag-template: 'v$NEXT_PATCH_VERSION'
categories:
- title: '🚀 Features'
labels:
- 'feature'
- 'enhancement'
- title: '🐛 Bug Fixes'
labels:
- 'fix'
- 'bugfix'
- 'bug'
- title: '🧰 Maintenance'
label: 'chore'
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
template: |
## Changes
$CHANGES
13 changes: 13 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Release Drafter

on:
push:
branches:
- master
jobs:
update_release_draft:
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ services:
- REACT_APP_WS_URL=localhost
- REACT_APP_WS_PORT=8080
- REACT_APP_CLIENT_ID=${CLIENT_ID}
- GOOGLE_AUTH_DOMAIN=${GOOGLE_AUTH_DOMAIN}
jukebox-api:
container_name: jukebox-api
build:
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const store = createStore(jukeboxApp, composeEnhancers(applyMiddleware(jukeboxMi
const App = () => {
const googleAuth = useGoogleLogin({
clientId: process.env.REACT_APP_CLIENT_ID,
hostedDomain: 'kyanmedia.com'
hostedDomain: process.env.GOOGLE_AUTH_DOMAIN
})

return (
Expand Down

0 comments on commit 602e961

Please sign in to comment.