Skip to content

Commit f5df027

Browse files
fix: restore conda upload steps
1 parent 8f3804d commit f5df027

File tree

1 file changed

+22
-23
lines changed

1 file changed

+22
-23
lines changed

.github/workflows/release-please.yml

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ jobs:
8989
conda config --set solver libmamba
9090
conda install -c conda-forge conda-build pytest numpy scipy pandas geopandas sqlite shapely validators anaconda-client conda-libmamba-solver -y
9191
conda build -c anaconda -c conda-forge --output-folder conda conda
92-
anaconda upload --label main conda/*/*.conda
9392
9493
- name: upload artifacts
9594
uses: actions/upload-artifact@v4
@@ -114,28 +113,28 @@ jobs:
114113
name: dist
115114
path: dist/
116115

117-
# upload_to_conda:
118-
# needs: ["release-please", "conda-deploy"]
119-
# runs-on: ${{matrix.os}}
120-
# strategy:
121-
# fail-fast: false
122-
# matrix:
123-
# os: ["ubuntu-latest"]
124-
# python-version: ["3.9", "3.10", "3.11", "3.12"]
125-
# if: ${{ needs.release-please.outputs.release_created }}
126-
# steps:
127-
# - uses: actions/download-artifact@v4
128-
# with:
129-
# name: conda-${{ matrix.os }}-${{ matrix.python-version }}
130-
# path: conda
131-
# - uses: conda-incubator/setup-miniconda@v3
132-
# - name: upload all files to conda-forge
133-
# shell: bash -l {0}
134-
# env:
135-
# ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
136-
# run: |
137-
# conda install -c anaconda anaconda-client -y
138-
# anaconda upload --label main conda/*/*.tar.bz2
116+
upload_to_conda:
117+
needs: ["release-please", "conda-deploy"]
118+
runs-on: ${{matrix.os}}
119+
strategy:
120+
fail-fast: false
121+
matrix:
122+
os: ["ubuntu-latest"]
123+
python-version: ["3.9", "3.10", "3.11", "3.12"]
124+
if: ${{ needs.release-please.outputs.release_created }}
125+
steps:
126+
- uses: actions/download-artifact@v4
127+
with:
128+
name: conda-${{ matrix.os }}-${{ matrix.python-version }}
129+
path: conda
130+
- uses: conda-incubator/setup-miniconda@v3
131+
- name: upload all files to conda-forge
132+
shell: bash -l {0}
133+
env:
134+
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
135+
run: |
136+
conda install -c anaconda anaconda-client -y
137+
anaconda upload --label main conda/*/*.conda
139138
140139
upload_to_pypi:
141140
needs: ["release-please", "conda-deploy"]

0 commit comments

Comments
 (0)