Skip to content

Commit 2f78a56

Browse files
authored
ci: add production flags during release build
1 parent b8912a4 commit 2f78a56

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,8 @@ jobs:
204204
sed -i -r -e "s|^__version__ += '.*'$|__version__ = '$PKG_VERSION_STRICT'|" ietf/__init__.py
205205
sed -i -r -e "s|^__release_hash__ += '.*'$|__release_hash__ = '$GITHUB_SHA'|" ietf/__init__.py
206206
sed -i -r -e "s|^__release_branch__ += '.*'$|__release_branch__ = '$GITHUB_REF_NAME'|" ietf/__init__.py
207+
echo "Setting production flags in settings.py..."
208+
sed -i -r -e 's/^DEBUG *= *.*$/DEBUG = False/' -e "s/^SERVER_MODE *= *.*\$/SERVER_MODE = 'production'/" ietf/settings.py
207209
echo "Build release tarball..."
208210
mkdir -p /home/runner/work/release
209211
tar -czf /home/runner/work/release/release.tar.gz -X dev/deploy/exclude-patterns.txt .

0 commit comments

Comments
 (0)