From e7f7115115682fb98bd299fd737f8c187a4afe44 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 | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9625fb06..6092a678e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -22,8 +22,22 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Write commit SHA to file - run: echo "${{ github.sha }}" >> benefits/static/sha.txt + - uses: actions/setup-python@v4 + with: + python-version-file: .github/workflows/.python-version + cache: pip + cache-dependency-path: "**/pyproject.toml" + + - name: Install package in virtual env + run: | + python -m venv .venv + source .venv/bin/activate + pip install -e . + + - name: Write app metadata to static files + run: | + echo "${{ github.sha }}" >> benefits/static/sha.txt + pip freeze >> benefits/static/requirements.txt - name: Docker Login to GitHub Container Registry uses: docker/login-action@v3