We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21289d7 commit 741ffd6Copy full SHA for 741ffd6
.github/workflows/publish-release.yml
@@ -148,10 +148,21 @@ jobs:
148
149
- name: Build package
150
run: python -m build --sdist --wheel
151
-
+
152
+ - name: Detect Pre-release
153
+ shell: bash
154
+ run: |
155
+ if echo "${{ github.ref_name }}" | grep -q '^[0-9][0-9]\.[0-9][0-9]\.[A-Za-z]'; then
156
+ echo "PRERELEASE=true" >> $GITHUB_ENV
157
+ else
158
+ echo "PRERELEASE=false" >> $GITHUB_ENV
159
+ fi
160
+ echo PRERELEASE=${{ env.PRERELEASE }}
161
162
- name: Release package
163
uses: softprops/action-gh-release@v2
164
with:
165
+ prerelease: ${{ env.PRERELEASE }}
166
files: ./dist/spm_python*.whl
167
168
- name: Publish package
0 commit comments