Skip to content

Commit 28e6469

Browse files
committed
disable publish-conda workflow
1 parent e4cea3e commit 28e6469

2 files changed

Lines changed: 60 additions & 61 deletions

File tree

.github/workflows/publish-conda.yml

Lines changed: 56 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@ on:
55

66
jobs:
77
build-conda:
8+
if: false # Disabled: workflow doesn't work yet
89
name: Build Conda Package
910
runs-on: ${{ matrix.os }}
1011
strategy:
1112
matrix:
12-
os: [ubuntu-latest, windows-latest, macos-15-intel] # Intel runner for conda compatibility
13-
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
13+
os: [ubuntu-latest] # Intel runner for conda compatibility
14+
python-version: ['3.11']
15+
# python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
1416
# Note: Excluded Python 3.13+ due to conda-build virtual package resolution issues
1517
# Note: Using macos-15-intel (x86_64) for consistency with conda-forge practices
1618

@@ -21,61 +23,69 @@ jobs:
2123
uses: conda-incubator/setup-miniconda@v3
2224
with:
2325
python-version: ${{ matrix.python-version }}
26+
auto-update-conda: false
27+
auto-activate-base: false
28+
show-channel-urls: true
2429
channels: conda-forge
2530
channel-priority: strict
2631
activate-environment: build-env
2732

28-
- name: Install conda-build and anaconda-client
29-
shell: bash -l {0}
30-
run: |
31-
# Use classic solver to avoid libmamba compatibility issues
32-
conda config --set solver classic
33-
conda install -y conda-build anaconda-client
33+
# - name: Install conda-build and anaconda-client
34+
# shell: bash -l {0}
35+
# run: |
36+
# # Use classic solver to avoid libmamba compatibility issues
37+
# conda config --set solver classic
38+
# conda install -y conda-build anaconda-client
3439

3540
- name: Build conda package
36-
shell: bash -l {0}
37-
run: |
38-
conda build conda.recipe --output-folder ./conda-bld
39-
40-
- name: Upload build artifacts
41-
uses: actions/upload-artifact@v4
41+
uses: uibcdf/action-build-and-upload-conda-packages@v2.0.0
4242
with:
43-
name: conda-package-${{ matrix.os }}-py${{ matrix.python-version }}
44-
path: ./conda-bld/**/*.tar.bz2
45-
retention-days: 7
43+
meta_yaml_dir: conda.recipe/meta.yaml # Replace with the path to your meta.yaml directory
44+
user: kzhao77
45+
token: ${{ secrets.ANACONDA_API_TOKEN }} # Replace with the name of your Anaconda Token secret
46+
# shell: bash -l {0}
47+
# run: |
48+
# conda build conda.recipe --output-folder ./conda-bld
4649

47-
publish-conda:
48-
name: Publish to Anaconda Cloud
49-
needs: build-conda
50-
runs-on: ubuntu-latest
51-
if: github.event_name == 'release' && github.event.action == 'published'
50+
# - name: Upload build artifacts
51+
# uses: actions/upload-artifact@v4
52+
# with:
53+
# name: conda-package-${{ matrix.os }}-py${{ matrix.python-version }}
54+
# path: ./conda-bld/**/*.tar.bz2
55+
# retention-days: 7
5256

53-
steps:
54-
- name: Set up Conda
55-
uses: conda-incubator/setup-miniconda@v3
56-
with:
57-
python-version: '3.11'
58-
channels: conda-forge
57+
# publish-conda:
58+
# name: Publish to Anaconda Cloud
59+
# needs: build-conda
60+
# runs-on: ubuntu-latest
61+
# if: github.event_name == 'release' && github.event.action == 'published'
5962

60-
- name: Install anaconda-client
61-
shell: bash -l {0}
62-
run: |
63-
conda install -y anaconda-client
63+
# steps:
64+
# - name: Set up Conda
65+
# uses: conda-incubator/setup-miniconda@v3
66+
# with:
67+
# python-version: '3.11'
68+
# channels: conda-forge
6469

65-
- name: Download all artifacts
66-
uses: actions/download-artifact@v4
67-
with:
68-
pattern: conda-package-*
69-
merge-multiple: true
70-
path: ./conda-packages
70+
# - name: Install anaconda-client
71+
# shell: bash -l {0}
72+
# run: |
73+
# conda install -y anaconda-client
7174

72-
- name: Upload to Anaconda Cloud
73-
shell: bash -l {0}
74-
env:
75-
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
76-
run: |
77-
# Login using token
78-
anaconda -t $ANACONDA_API_TOKEN upload ./conda-packages/**/*.tar.bz2 --force --label main
75+
# - name: Download all artifacts
76+
# uses: actions/download-artifact@v4
77+
# with:
78+
# pattern: conda-package-*
79+
# merge-multiple: true
80+
# path: ./conda-packages
81+
82+
# - name: Upload to Anaconda Cloud
83+
# shell: bash -l {0}
84+
# env:
85+
# ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
86+
# run: |
87+
# # Login using token
88+
# anaconda -t $ANACONDA_API_TOKEN upload ./conda-packages/**/*.tar.bz2 --force --label main
7989

8090
- name: Summary
8191
shell: bash -l {0}
@@ -84,5 +94,5 @@ jobs:
8494
echo "" >> $GITHUB_STEP_SUMMARY
8595
echo "Users can install with:" >> $GITHUB_STEP_SUMMARY
8696
echo '```bash' >> $GITHUB_STEP_SUMMARY
87-
echo "conda install -c ${{ github.repository_owner }} slick_queue_py" >> $GITHUB_STEP_SUMMARY
97+
echo "conda install -c ${{ github.repository_owner }} slick-queue-py" >> $GITHUB_STEP_SUMMARY
8898
echo '```' >> $GITHUB_STEP_SUMMARY

.github/workflows/publish-release.yml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ jobs:
5757

5858
# Build Conda packages
5959
build-conda:
60+
if: false # Disabled: conda workflow doesn't work yet
6061
name: Build Conda Package
6162
runs-on: ${{ matrix.os }}
6263
continue-on-error: true # Allow conda builds to fail without blocking PyPI release
@@ -121,10 +122,11 @@ jobs:
121122

122123
# Publish to Anaconda Cloud
123124
publish-conda:
125+
if: false # Disabled: conda workflow doesn't work yet
124126
name: Publish to Anaconda Cloud
125127
needs: build-conda
126128
runs-on: ubuntu-latest
127-
if: success() # Only run if conda builds succeeded
129+
# if: success() # Only run if conda builds succeeded
128130

129131
steps:
130132
- name: Set up Conda
@@ -155,7 +157,7 @@ jobs:
155157
# Create release summary
156158
release-summary:
157159
name: Release Summary
158-
needs: [publish-pypi, publish-conda]
160+
needs: [publish-pypi]
159161
runs-on: ubuntu-latest
160162
if: always() # Run even if conda publish fails
161163

@@ -171,18 +173,5 @@ jobs:
171173
echo "pip install slick-queue-py" >> $GITHUB_STEP_SUMMARY
172174
echo '```' >> $GITHUB_STEP_SUMMARY
173175
echo "" >> $GITHUB_STEP_SUMMARY
174-
if [ "${{ needs.publish-conda.result }}" == "success" ]; then
175-
echo "**Via conda:**" >> $GITHUB_STEP_SUMMARY
176-
echo '```bash' >> $GITHUB_STEP_SUMMARY
177-
echo "conda install -c ${{ github.repository_owner }} slick-queue-py" >> $GITHUB_STEP_SUMMARY
178-
echo '```' >> $GITHUB_STEP_SUMMARY
179-
echo "" >> $GITHUB_STEP_SUMMARY
180-
else
181-
echo "⚠️ **Conda builds failed** - Package available on PyPI only" >> $GITHUB_STEP_SUMMARY
182-
echo "" >> $GITHUB_STEP_SUMMARY
183-
fi
184176
echo "### Links" >> $GITHUB_STEP_SUMMARY
185177
echo "- PyPI: https://pypi.org/project/slick-queue-py/" >> $GITHUB_STEP_SUMMARY
186-
if [ "${{ needs.publish-conda.result }}" == "success" ]; then
187-
echo "- Anaconda: https://anaconda.org/${{ github.repository_owner }}/slick-queue-py" >> $GITHUB_STEP_SUMMARY
188-
fi

0 commit comments

Comments
 (0)