File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 10
10
permissions :
11
11
id-token : write
12
12
contents : write
13
+
14
+ services :
15
+ postgres :
16
+ image : postgres:latest
17
+ env :
18
+ POSTGRES_DB : test_db
19
+ POSTGRES_USER : postgres
20
+ POSTGRES_PASSWORD : postgres
21
+ ports :
22
+ - 5432:5432
23
+ options : >-
24
+ --health-cmd pg_isready
25
+ --health-interval 10s
26
+ --health-timeout 5s
27
+ --health-retries 5
28
+
13
29
steps :
14
30
- name : Generate token for version incrementer app
15
31
id : create_token
44
60
git config --global user.name "github-actions[bot]"
45
61
git config --global user.email "github-actions[bot]@users.noreply.github.com"
46
62
63
+ - name : Set required env variables
64
+ run : |
65
+ echo "DB_USER=postgres" >> $GITHUB_ENV
66
+ echo "DB_PASSWORD=postgres" >> $GITHUB_ENV
67
+ echo "DB_HOST=127.0.0.1" >> $GITHUB_ENV
68
+ echo "DB_PORT=5432" >> $GITHUB_ENV
69
+ echo "DB_NAME=test_db" >> $GITHUB_ENV
70
+ echo "SECRET_KEY=$(openssl rand -base64 32)" >> $GITHUB_ENV
71
+ echo "BASE_URL=http://localhost:8000" >> $GITHUB_ENV
72
+ echo "RESEND_API_KEY=resend_api_key" >> $GITHUB_ENV
73
+
47
74
- name : Render and Publish
48
75
run : uv run quarto publish gh-pages --no-prompt --no-browser
49
76
You can’t perform that action at this time.
0 commit comments