allow restarts to turn 10 #345
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy PYDT API | |
on: | |
push: | |
branches: | |
- master | |
- develop | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '18' | |
- run: | | |
npm install | |
npm run test | |
docker-compose -f testdata/docker-compose.yml up -d | |
npm run integration-test | |
npm run deploy-${GITHUB_REF##*/} | |
env: | |
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}} | |
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}} | |
JWT_SECRET: ${{secrets.JWT_SECRET}} | |
ROLLBAR_API_KEY: ${{secrets.ROLLBAR_API_KEY}} | |
DISCOURSE_API_KEY: ${{secrets.DISCOURSE_API_KEY}} | |
STEAM_API_KEY: ${{secrets.STEAM_API_KEY}} | |
VAPID_PRIVATE_KEY: ${{secrets.VAPID_PRIVATE_KEY}} |