File tree Expand file tree Collapse file tree 2 files changed +31
-19
lines changed
Expand file tree Collapse file tree 2 files changed +31
-19
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name: Deploy project to Render
2+
3+ on:
4+ push:
5+ branches:
6+ - master
7+
8+ jobs:
9+ create-env-file:
10+ runs-on: ubuntu-latest
11+
12+ steps:
13+ - name: Checkout Repository
14+ uses: actions/checkout@v3
15+
16+ - name: Create .env file
17+ run: |
18+ echo "PORT=${{ secrets.PORT }}" >> .env
19+ echo "MONGODB_URI=${{ secrets.MONGODB_URI }}" >> .env
20+
21+ - name: Deploy project to Render
22+ uses: JorgeLNJunior/render-deploy@v1.4.4
23+ with:
24+ service_id: ${{ secrets.RENDER_SERVICE_ID }}
25+ api_key: ${{ secrets.RENDER_API_KEY }}
26+ clear_cache: true
27+ wait_deploy: true
28+ github_deployment: true
29+ deployment_environment: 'production'
30+ github_token: ${{ secrets.GITHUB_TOKEN }}
31+
You can’t perform that action at this time.
0 commit comments