Skip to content

Commit 796e173

Browse files
authored
Only publish in publish-release.yml
1 parent 00e911c commit 796e173

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

.github/workflows/publish-release.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,10 @@ jobs:
117117
pip install build
118118
pip install numpy
119119
120-
- name: Setup python version
121-
if: ${{ matrix.main }}
122-
run: |
123-
sed -i 's/\(version = "[^"]*\)"/version = "${{ github.ref_name }}"/' pyproject.toml
120+
# - name: Setup python version
121+
# if: ${{ matrix.main }}
122+
# run: |
123+
# sed -i 's/\(version = "[^"]*\)"/version = "${{ github.ref_name }}"/' pyproject.toml
124124

125125
- name: Add Matlab version specifier
126126
if: ${{ !matrix.main }}
@@ -149,21 +149,21 @@ jobs:
149149
- name: Build package
150150
run: python -m build --sdist --wheel
151151

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 }}
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 }}
161161

162-
- name: Release package
163-
uses: softprops/action-gh-release@v2
164-
with:
165-
prerelease: ${{ env.PRERELEASE }}
166-
files: ./dist/spm_python*.whl
162+
# - name: Release package
163+
# uses: softprops/action-gh-release@v2
164+
# with:
165+
# prerelease: ${{ env.PRERELEASE }}
166+
# files: ./dist/spm_python*.whl
167167

168168
- name: Publish package
169169
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29

0 commit comments

Comments
 (0)