-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (56 loc) · 1.62 KB
/
deploy-to-render.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Deploy To Render
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
deployments: write
steps:
- uses: actions/checkout@v3
- uses: JorgeLNJunior/[email protected]
with:
service_id: ${{ secrets.RENDER_SERVICE_ID }}
api_key: ${{ secrets.RENDER_API_KEY }}
clear_cache: true
wait_deploy: true
github_deployment: true
deployment_environment: "production"
github_token: ${{ secrets.ACCESS_TOKEN_GITHUB }}
# name: Test and Deploy To Render
# on:
# push:
# branches:
# - main
# jobs:
# test-deploy:
# runs-on: ubuntu-latest
# env:
# APPCRONS_STAG_DSN: ${{ secrets.APPCRONS_STAG_DSN }}
# REDIS_URL: ${{ secrets.REDIS_URL }}
# permissions:
# deployments: write
# steps:
# - name: Checkout code
# uses: actions/checkout@v3
# - name: Check SQLite version
# run: sqlite3 --version
# - name: Set up Go
# uses: actions/setup-go@v4
# with:
# go-version: "1.23"
# - name: Install dependencies
# run: make install
# - name: Run tests
# run: make stage # Runs tests in the staging environment
# - uses: JorgeLNJunior/[email protected]
# with:
# service_id: ${{ secrets.RENDER_SERVICE_ID }}
# api_key: ${{ secrets.RENDER_API_KEY }}
# clear_cache: true
# wait_deploy: true
# github_deployment: true
# deployment_environment: "production"
# github_token: ${{ secrets.ACCESS_TOKEN_GITHUB }}