dev 发版测试

This commit is contained in:
Xuwznln
2025-08-01 20:21:41 +08:00
parent c07a6fe314
commit 9e03641890
2 changed files with 8 additions and 8 deletions

View File

@@ -123,12 +123,12 @@ jobs:
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' || (github.ref == 'refs/heads/main' && github.event_name != 'pull_request'))
if: steps.should_build.outputs.should_build == 'true' && (github.event.inputs.upload_to_anaconda == 'true')
run: |
anaconda login --token ${{ secrets.ANACONDA_API_TOKEN }}
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' || (github.ref == 'refs/heads/main' && github.event_name != 'pull_request'))
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..."
@@ -136,6 +136,6 @@ jobs:
done
- name: Logout from Anaconda
if: always() && steps.should_build.outputs.should_build == 'true' && (github.event.inputs.upload_to_anaconda == 'true' || (github.ref == 'refs/heads/main' && github.event_name != 'pull_request'))
if: always() && steps.should_build.outputs.should_build == 'true' && (github.event.inputs.upload_to_anaconda == 'true')
run: |
anaconda logout || true

View File

@@ -76,12 +76,12 @@ jobs:
retention-days: 30
- name: Login to Anaconda with API token
if: github.event.inputs.upload_to_anaconda == 'true' || (github.ref == 'refs/heads/main' && github.event_name != 'pull_request')
if: github.event.inputs.upload_to_anaconda == 'true'
run: |
anaconda login --token ${{ secrets.ANACONDA_API_TOKEN }}
anaconda login -t ${{ secrets.ANACONDA_API_TOKEN }}
- name: Upload to Anaconda.org (uni-lab organization)
if: github.event.inputs.upload_to_anaconda == 'true' || (github.ref == 'refs/heads/main' && github.event_name != 'pull_request')
if: github.event.inputs.upload_to_anaconda == 'true'
run: |
for package in $(find ./output -name "*.conda"); do
echo "Uploading $package to uni-lab organization..."
@@ -89,6 +89,6 @@ jobs:
done
- name: Logout from Anaconda
if: always() && (github.event.inputs.upload_to_anaconda == 'true' || (github.ref == 'refs/heads/main' && github.event_name != 'pull_request'))
if: always() && (github.event.inputs.upload_to_anaconda == 'true'
run: |
anaconda logout || true