From 043275ff82c727fb1e4aea3239ee0fa3d58205bd Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 2 Mar 2024 12:37:42 +0000 Subject: [PATCH] File sync from bmos/fg-workflows --- .github/workflows/release.yml | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c7e20a5..56848df 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -57,10 +57,26 @@ jobs: python-version: "3.12" cache: 'pip' - - name: Install general project dependencies + - name: Install uv and create venv run: | - pip install -U pip - pip install . + pip install -U pip uv + uv venv + + - name: Enable macOS/Linux venv + if: runner.os != 'Windows' + run: | + source .venv/bin/activate + echo $PATH >> $GITHUB_PATH + + - name: Enable Windows venv + if: runner.os == 'Windows' + run: | + .venv\Scripts\activate + echo $env:path >> $ENV:GITHUB_PATH + + - name: Install dependencies + run: | + uv pip install -e . - uses: actions/download-artifact@v4 with: @@ -92,12 +108,13 @@ jobs: FG_UL_FILE: ${{ github.event.repository.name }}${{ env.EXTENSION }} FG_README_UPDATE: "FALSE" FG_UPLOAD_BUILD: "TRUE" - FG_GRAPH_SALES: "FALSE" + FG_GRAPH_SALES: "TRUE" run: | python -m src.main - name: Add cumulative users graph to release uses: ncipollo/release-action@v1 with: + body: "![Cumulative Users Graph](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/cumulative_users.png)" artifacts: cumulative_users.png allowUpdates: true