diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8d9fc5e..b4623c6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -66,10 +66,6 @@ jobs: path: .venv key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }} - - name: Add Poetry to PATH - run: echo "/c/Users/runneradmin/.local/bin" >> $GITHUB_PATH - shell: bash - - name: Install Poetry plugins run: poetry self add poethepoet shell: bash @@ -87,10 +83,14 @@ jobs: - name: Build artifacts with dynamic taskfile run: task --taskfile Taskfile.dynamic.yml build-all shell: bash + env: + POETRY_BIN: /c/Users/runneradmin/.local/bin/poetry - name: Create release archives run: task --taskfile Taskfile.dynamic.yml compress-all shell: bash + env: + POETRY_BIN: /c/Users/runneradmin/.local/bin/poetry # Sunvalley theme variants - name: Upload build artifacts - Sunvalley Basic diff --git a/Taskfile.dynamic.yml b/Taskfile.dynamic.yml index b433ca2..0e3f281 100644 --- a/Taskfile.dynamic.yml +++ b/Taskfile.dynamic.yml @@ -11,27 +11,27 @@ tasks: build: desc: Build specified themes dynamically (no spec files needed) cmds: - - poetry run python tools/dynamic_builder.py {{.THEMES}} + - ${POETRY_BIN:-poetry} run python tools/dynamic_builder.py {{.THEMES}} build-all: desc: Build all themes cmds: - - poetry run python tools/dynamic_builder.py all + - ${POETRY_BIN:-poetry} run python tools/dynamic_builder.py all build-azure: desc: Build only azure theme cmds: - - poetry run python tools/dynamic_builder.py azure + - ${POETRY_BIN:-poetry} run python tools/dynamic_builder.py azure build-forest: desc: Build only forest theme cmds: - - poetry run python tools/dynamic_builder.py forest + - ${POETRY_BIN:-poetry} run python tools/dynamic_builder.py forest build-sunvalley: desc: Build only sunvalley theme cmds: - - poetry run python tools/dynamic_builder.py sunvalley + - ${POETRY_BIN:-poetry} run python tools/dynamic_builder.py sunvalley compress: desc: Compress artifacts for specified theme