Skip to content

Commit 25bd93f

Browse files
committed
v0.5a
1 parent 0d2becc commit 25bd93f

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/linux.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
build:
1414
runs-on: ubuntu-latest
1515
container: quay.io/pypa/manylinux_2_28_x86_64
16-
if: ${{ startsWith($GITHUB_REF, 'refs/tags') || !contains(github.event.head_commit.message, '[skip ci]') }}
16+
if: ${{ startsWith(github.ref, 'refs/tags') || startsWith(env.GITHUB_REF, 'refs/tags') || !contains(github.event.head_commit.message, '[skip ci]') }}
1717

1818
steps:
1919
- name: Checkout code
@@ -84,7 +84,7 @@ jobs:
8484
path: wheelhouse/*.whl
8585

8686
- name: Upload to PyPI
87-
if: ${{ github.event_name == 'push' && startsWith($GITHUB_REF, 'refs/tags') }}
87+
if: ${{ github.event_name == 'push' && (startsWith(github.ref, 'refs/tags') || startsWith(env.GITHUB_REF, 'refs/tags')) }}
8888
run: |
8989
$PYTHON -m pip install twine
9090
$PYTHON -m twine upload wheelhouse/*.whl -u __token__ -p "$PASSWORD"

.github/workflows/macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ jobs:
185185
python-version: ["3.9", "3.10", "3.11", "3.12"]
186186

187187
runs-on: ${{ matrix.os }}
188-
if: startsWith($GITHUB_REF, 'refs/tags')
188+
if: startsWith(github.ref, 'refs/tags') || startsWith(env.GITHUB_REF, 'refs/tags')
189189
steps:
190190
- name: Python - set up ${{ matrix.python-version }}
191191
uses: actions/setup-python@v5

.github/workflows/windows.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
runs-on: windows-2022
2020

21-
if: ${{ startsWith($GITHUB_REF, 'refs/tags') || !contains(github.event.head_commit.message, '[skip ci]') }}
21+
if: ${{ startsWith(github.ref, 'refs/tags') || startsWith(env.GITHUB_REF, 'refs/tags') || !contains(github.event.head_commit.message, '[skip ci]') }}
2222

2323
steps:
2424
- name: Checkout code
@@ -96,7 +96,7 @@ jobs:
9696
python-version: ["3.8", "3.9", "3.10", "3.11"]
9797

9898
runs-on: windows-2022
99-
if: startsWith($GITHUB_REF, 'refs/tags')
99+
if: startsWith(github.ref, 'refs/tags') || startsWith(env.GITHUB_REF, 'refs/tags')
100100
steps:
101101
- name: Setup python ${{ matrix.python-version }}
102102
uses: actions/setup-python@v5
@@ -116,7 +116,7 @@ jobs:
116116
path: ${{ github.workspace }}
117117

118118
- name: Upload to PyPI
119-
if: ${{ github.event_name == 'push' && startsWith($GITHUB_REF, 'refs/tags') }}
119+
if: ${{ github.event_name == 'push' && (startsWith(github.ref, 'refs/tags') || startsWith(env.GITHUB_REF, 'refs/tags')) }}
120120
run: |
121121
python -m pip install twine
122122
python -m twine upload *.whl -u __token__ -p "$env:PASSWORD"

0 commit comments

Comments
 (0)