dev 发版测试

This commit is contained in:
Xuwznln
2025-08-01 20:40:11 +08:00
parent 22c47404bc
commit 735c301c79
2 changed files with 3 additions and 23 deletions

View File

@@ -122,20 +122,10 @@ jobs:
if-no-files-found: warn
retention-days: 30
- name: Login to Anaconda with API token
if: steps.should_build.outputs.should_build == 'true' && (github.event.inputs.upload_to_anaconda == 'true')
run: |
anaconda login -t ${{ secrets.ANACONDA_API_TOKEN }}
- name: Upload to Anaconda.org (unilab organization)
if: steps.should_build.outputs.should_build == 'true' && (github.event.inputs.upload_to_anaconda == 'true')
if: steps.should_build.outputs.should_build == 'true' && github.event.inputs.upload_to_anaconda == 'true'
run: |
for package in $(find ./output -name "*.conda"); do
echo "Uploading $package to unilab organization..."
anaconda upload --user uni-lab --force "$package"
anaconda upload -t ${{ secrets.ANACONDA_API_TOKEN }} --user uni-lab --force "$package"
done
- name: Logout from Anaconda
if: always() && steps.should_build.outputs.should_build == 'true' && (github.event.inputs.upload_to_anaconda == 'true')
run: |
anaconda logout || true

View File

@@ -75,20 +75,10 @@ jobs:
if-no-files-found: warn
retention-days: 30
- name: Login to Anaconda with API token
if: github.event.inputs.upload_to_anaconda == 'true'
run: |
anaconda login -t ${{ secrets.ANACONDA_API_TOKEN }}
- name: Upload to Anaconda.org (uni-lab organization)
if: github.event.inputs.upload_to_anaconda == 'true'
run: |
for package in $(find ./output -name "*.conda"); do
echo "Uploading $package to uni-lab organization..."
anaconda upload --user uni-lab --force "$package"
anaconda upload -t ${{ secrets.ANACONDA_API_TOKEN }} --user uni-lab --force "$package"
done
- name: Logout from Anaconda
if: always() && github.event.inputs.upload_to_anaconda == 'true'
run: |
anaconda logout || true