Skip to content

Merge pull request #155 from extreme-todo/develop #10

Merge pull request #155 from extreme-todo/develop

Merge pull request #155 from extreme-todo/develop #10

Workflow file for this run

name: Deploy
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: npm install
run: npm install
- name: Generate Environment Variables File for Production
run: |
echo "REACT_APP_API_SERVER_URL=$REACT_APP_API_SERVER_URL" >> .env
echo "REACT_APP_API_CLIENT_URL=$REACT_APP_API_CLIENT_URL" >> .env
env:
REACT_APP_API_SERVER_URL: ${{ secrets.REACT_APP_API_SERVER_URL }}
REACT_APP_API_CLIENT_URL: ${{ secrets.REACT_APP_API_CLIENT_URL }}
- name: unit test
run: npm test
- uses: superfly/flyctl-actions/setup-flyctl@master
- name: Fly deploy
run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}