Fix release publish action (#13462)
This commit is contained in:
parent
59eedcc3fa
commit
f77349547e
1 changed files with 2 additions and 2 deletions
4
.github/workflows/publish.yml
vendored
4
.github/workflows/publish.yml
vendored
|
|
@ -37,7 +37,7 @@ jobs:
|
|||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip wheel build twine
|
||||
pip install -e ".[dev]" --extra-index-url https://download.pytorch.org/whl/cpu
|
||||
pip install -e ".[dev]" openai --extra-index-url https://download.pytorch.org/whl/cpu
|
||||
- name: Check PyPI version
|
||||
shell: python
|
||||
run: |
|
||||
|
|
@ -61,7 +61,7 @@ jobs:
|
|||
if: (github.event_name == 'push' || github.event.inputs.pypi == 'true') && steps.check_pypi.outputs.increment == 'True'
|
||||
run: |
|
||||
git tag -a "v${{ steps.check_pypi.outputs.version }}" -m "$(git log -1 --pretty=%B)" # i.e. "v0.1.2 commit message"
|
||||
git push origin "v${{ steps.check_pypi.outputs.version }}"
|
||||
git push origin "v${{ steps.check_pypi.outputs.version }}" || true
|
||||
- name: Publish new release
|
||||
if: (github.event_name == 'push' || github.event.inputs.pypi == 'true') && steps.check_pypi.outputs.increment == 'True'
|
||||
env:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue