Skip to content

Commit

Permalink
GHA: Change condition to allow manually building wheels in forks
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Dec 1, 2021
1 parent 22ad047 commit 915d014
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test-windows.yml
Expand Up @@ -132,7 +132,7 @@ jobs:
- name: Build Pillow
run: |
$FLAGS=""
if ('${{ github.event_name }}' -eq 'push') { $FLAGS="--disable-imagequant" }
if ('${{ github.event_name }}' -ne 'pull_request') { $FLAGS="--disable-imagequant" }
& winbuild\build\build_pillow.cmd $FLAGS install
& $env:pythonLocation\python.exe selftest.py --installed
shell: pwsh
Expand Down Expand Up @@ -175,14 +175,14 @@ jobs:

- name: Build wheel
id: wheel
if: "github.event_name == 'push'"
if: "github.event_name != 'pull_request'"
run: |
for /f "tokens=3 delims=/" %%a in ("${{ github.ref }}") do echo ::set-output name=dist::dist-%%a
winbuild\\build\\build_pillow.cmd --disable-imagequant bdist_wheel
shell: cmd

- uses: actions/upload-artifact@v2
if: "github.event_name == 'push'"
if: "github.event_name != 'pull_request'"
with:
name: ${{ steps.wheel.outputs.dist }}
path: dist\*.whl
Expand Down

0 comments on commit 915d014

Please sign in to comment.