From 6ce30cca94641c02dc50c48f560a7230e34659ec Mon Sep 17 00:00:00 2001 From: Kegan Maher Date: Tue, 19 Sep 2023 10:48:50 -0700 Subject: [PATCH] chore(deploy): pip freeze to a static file similar to having the SHA, will help confirm changes and debug --- .github/workflows/deploy.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9625fb066..af0075a59d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -22,6 +22,19 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - uses: actions/setup-python@v4 + with: + python-version-file: .github/workflows/.python-version + cache: pip + cache-dependency-path: "**/pyproject.toml" + + - name: Write python packages to file + run: | + python -m venv .venv + source .venv/bin/activate + pip install -e . + pip freeze >> benefits/static/requirements.txt + - name: Write commit SHA to file run: echo "${{ github.sha }}" >> benefits/static/sha.txt