@@ -2,7 +2,8 @@ name: publish
22
33on :
44 push :
5- tags : [ 'NO_OPT' ]
5+ tags :
6+ - ' v*'
67 workflow_dispatch :
78 inputs :
89 os :
9899 set -e
99100 uv python install "${{ matrix.py }}" || true
100101 uv python list --only-installed
101-
102102 - name : Select interpreter and flags
103103 id : envsel
104104 if : ${{ env.MATCH }}
@@ -107,24 +107,20 @@ jobs:
107107 set -e
108108
109109 PY_TAG="${{ matrix.py }}"
110-
111110 if [[ "$PY_TAG" == *t* ]]; then
112111 PY="$(uv python find "$PY_TAG" 2>/dev/null || true)"
113112 FLAGS=""
114113 else
115114 PY="$(which python)"
116115 FLAGS=""
117116 fi
118-
119117 if [[ -z "$PY" ]]; then
120118 echo "skip=1" >> $GITHUB_OUTPUT
121119 exit 0
122120 fi
123-
124121 echo "skip=0" >> $GITHUB_OUTPUT
125122 echo "py=$PY" >> $GITHUB_OUTPUT
126123 echo "flags=$FLAGS" >> $GITHUB_OUTPUT
127-
128124 - name : Build wheel (Linux)
129125 if : ${{ env.MATCH == 'true' && runner.os == 'Linux' && steps.envsel.outputs.skip == '0' }}
130126 uses : PyO3/maturin-action@v1
@@ -142,7 +138,7 @@ jobs:
142138 manylinux : auto
143139
144140 - name : Build wheel (macOS/Windows)
145- if : env.MATCH && runner.os != 'Linux' && steps.envsel.outputs.skip == '0'
141+ if : ${{ env.MATCH == 'true' && runner.os != 'Linux' && steps.envsel.outputs.skip == '0' }}
146142 uses : PyO3/maturin-action@v1
147143 env :
148144 PYO3_PYTHON : ${{ steps.envsel.outputs.py }}
@@ -154,7 +150,6 @@ jobs:
154150 -m py-radiate/Cargo.toml
155151 -o dist
156152 ${{ steps.envsel.outputs.flags }}
157-
158153 - uses : actions/upload-artifact@v4
159154 if : always()
160155 with :
0 commit comments