-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (35 loc) · 1.01 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
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 }}