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