fix: 운영 설정 배포와 탐색 UX 개선
This commit is contained in:
@@ -40,22 +40,8 @@ jobs:
|
||||
echo "Missing TAXBAIK_JWT_SECRET_KEY secret" >&2
|
||||
exit 1
|
||||
fi
|
||||
JWT_SECRET_KEY="$JWT_SECRET_KEY" python3 - <<'PY'
|
||||
import json
|
||||
import os
|
||||
from pathlib import Path
|
||||
|
||||
config = {
|
||||
"Jwt": {
|
||||
"SecretKey": os.environ["JWT_SECRET_KEY"]
|
||||
}
|
||||
}
|
||||
|
||||
Path("./publish/appsettings.Production.json").write_text(
|
||||
json.dumps(config, ensure_ascii=False, indent=2),
|
||||
encoding="utf-8",
|
||||
)
|
||||
PY
|
||||
JWT_SECRET_KEY="$JWT_SECRET_KEY" python3 -c 'import json, os, pathlib; pathlib.Path("./publish/appsettings.Production.json").write_text(json.dumps({"Jwt":{"SecretKey":os.environ["JWT_SECRET_KEY"]}}, ensure_ascii=False, indent=2), encoding="utf-8")'
|
||||
test -s ./publish/appsettings.Production.json
|
||||
|
||||
- name: Copy migrations to publish
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user