Skip to content

Commit

Permalink
fix boolean check
Browse files Browse the repository at this point in the history
  • Loading branch information
CSY-ModelCloud authored Oct 30, 2024
1 parent f550f4d commit 4fbbb52
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,6 @@ jobs:
#nvcc --version
echo "== torch =="
pip show torch
echo "----------"
echo "event_name: ${{ github.event_name }}"
echo "upload_release: ${{ github.event.inputs.upload_release }}"
echo "upload_pypi: ${{ github.event.inputs.upload_pypi }}"
- name: Install requirements
run: |
Expand Down Expand Up @@ -207,21 +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
echo "----------"
echo "event_name: ${{ github.event_name }}"
echo "upload_release: ${{ github.event.inputs.upload_release }}"
echo "upload_pypi: ${{ github.event.inputs.upload_pypi }}"
- 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 @@ -254,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 4fbbb52

Please sign in to comment.