Skip to content

Commit 222cc4c

Browse files
committed
build and push on windows - needed windows path to activate environment
1 parent 7c5c25c commit 222cc4c

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/on-release-main.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,25 @@ jobs:
5555
id: vars
5656
run: echo tag=${GITHUB_REF#refs/*/} >> $GITHUB_OUTPUT
5757

58-
- name: Build and publish
58+
- name: Build and publish (Windows)
59+
run: |
60+
.venv\Scripts\activate
61+
poetry version $RELEASE_VERSION
62+
make build-and-publish
63+
env:
64+
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
65+
RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
66+
if: ${{ startsWith(matrix.os, 'windows') }}
67+
68+
- name: Build and publish (Linux and macOS)
5969
run: |
6070
source .venv/bin/activate
6171
poetry version $RELEASE_VERSION
6272
make build-and-publish
6373
env:
6474
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
6575
RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
76+
if: ${{ startsWith(matrix.os, 'ubuntu') || startsWith(matrix.os, 'macos') }}
6677

6778
- name: Setup tmate
6879
if: failure()

0 commit comments

Comments
 (0)