Skip to content

Commit 094e92a

Browse files
Merge pull request #91 from Promptly-Technologies-LLC/35-automate-the-documentation-rendering-and-publishing
35 automate the documentation rendering and publishing
2 parents 4107932 + a1cbef2 commit 094e92a

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/publish.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,22 @@ jobs:
1010
permissions:
1111
id-token: write
1212
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+
1329
steps:
1430
- name: Generate token for version incrementer app
1531
id: create_token
@@ -44,6 +60,17 @@ jobs:
4460
git config --global user.name "github-actions[bot]"
4561
git config --global user.email "github-actions[bot]@users.noreply.github.com"
4662
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+
4774
- name: Render and Publish
4875
run: uv run quarto publish gh-pages --no-prompt --no-browser
4976

0 commit comments

Comments
 (0)