Skip to content

Commit

Permalink
[CI] check release (#501)
Browse files Browse the repository at this point in the history
* [CI] check release

* fix boolean check
  • Loading branch information
CSY-ModelCloud authored Oct 30, 2024
1 parent df62c22 commit 309e2c2
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -203,17 +203,6 @@ jobs:
repository: ${{ env.repo }}
ref: ${{ env.ref }}

- name: Print Env
run: |
echo "== pyenv =="
pyenv versions
echo "== python =="
python --version
echo "== nvcc =="
#nvcc --version
echo "== torch =="
pip show torch
- name: Install requirements
run: uv pip install build setuptools -U -i http://${{ needs.check-vm.outputs.ip }}/simple/ --trusted-host ${{ needs.check-vm.outputs.ip }}

Expand Down Expand Up @@ -246,15 +235,15 @@ jobs:

- name: Upload package to release
uses: svenstaro/upload-release-action@v2
if: (github.event_name == 'release' || github.event.inputs.upload_release) && !cancelled()
if: (github.event_name == 'release' || github.event.inputs.upload_release == 'true') && !cancelled()
with:
file: dist/${{ env.WHL_NAME }}
tag: ${{ env.ref }}
file_glob: true
overwrite: true

- name: Upload sdist to pypi
if: (github.event_name == 'release' || github.event.inputs.upload_pypi) && !cancelled()
if: (github.event_name == 'release' || github.event.inputs.upload_pypi == 'true') && !cancelled()
env:
TWINE_USERNAME: "__token__"
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
Expand Down

0 comments on commit 309e2c2

Please sign in to comment.