Skip to content

Commit

Permalink
Add deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTunchi committed Jun 23, 2024
1 parent 131fbb8 commit 0e9c24d
Showing 1 changed file with 22 additions and 14 deletions.
36 changes: 22 additions & 14 deletions .github/workflows/build-test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,24 +33,32 @@ jobs:

deploy_be:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
needs: build
steps:
- name: Deploy to production
uses: johnbeynon/[email protected]
with:
service-id: ${{ secrets.RENDER_KEY }}
api-key: ${{ secrets.API_KEYBE}}
- name: sleep 60s
run: sleep 60
- name: check out the repo
uses: actions/checkout@v4
- name: deploy backend
uses: JorgeLNJunior/[email protected]
with:
service_id: ${{ secrets.RENDER_KEY }}
api_key: ${{ secrets.API_KEYBE }}
clear_cache: true
wait_deploy: true
github_token: ${{ secrets.TOKEN_GH }}

deploy_fe:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
needs: deploy_be
steps:
- name: Deploy to production
uses: johnbeynon/[email protected]
with:
service-id: ${{ secrets.RENDER_KEY }}
api-key: ${{ secrets.API_KEYFE}}
- name: sleep 60s
run: sleep 60
- name: check out the repo
uses: actions/checkout@v4
- name: deploy backend
uses: JorgeLNJunior/[email protected]
with:
service_id: ${{ secrets.RENDER_KEY }}
api_key: ${{ secrets.API_KEYFE }}
clear_cache: true
wait_deploy: true
github_token: ${{ secrets.TOKEN_GH }}

0 comments on commit 0e9c24d

Please sign in to comment.