Skip to content

Commit

Permalink
client workflow added
Browse files Browse the repository at this point in the history
  • Loading branch information
pineapple45 committed Jul 30, 2021
1 parent 979cc04 commit 51dfac1
Show file tree
Hide file tree
Showing 5 changed files with 12,365 additions and 5,920 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: akhileshns/[email protected] # This is the action
- name: Checkout React App
uses: actions/checkout@v1

- name: Install and build React app
run: npm install && npm run build-prod

- name: Deploy React app
uses: JamesIves/[email protected]
with:
heroku_api_key: ${{secrets.HEROKU_API_KEY}}
heroku_app_name: photos-custom-directives #Must be unique in Heroku
heroku_email: [email protected]
appdir: server
env:
HD_JWT_SECRET_KEY: ${{secrets.HD_JWT_SECRET_KEY}}
HD_MONGO_URI: ${{secrets.HD_MONGO_URI}}
branch: gh-pages # The branch the action should deploy to.
repository-name: pineapple45/custom-directives-with-express-graphql/client
folder: build # The folder the action should deploy.
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
web: npm build
web: npm start
Loading

0 comments on commit 51dfac1

Please sign in to comment.