Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from OSGeo:master #161

Merged
merged 6 commits into from
Jan 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ jobs:
path: ./gdal-feedstock/packages/

- name: Deploy to gdal-master Conda channel
if: github.ref == 'refs/heads/master'
if: github.repository == 'OSGeo/GDAL' && github.ref == 'refs/heads/master'
shell: bash -l {0}
env:
ANACONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
run: |
source ../ci/travis/conda/upload.sh || true
source ../ci/travis/conda/upload.sh
working-directory: ./gdal-feedstock
4 changes: 4 additions & 0 deletions ci/travis/conda/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ cd gdal-feedstock
patch -p1 < ../ci/travis/conda/libgdal-adbc.patch
patch -p1 < ../ci/travis/conda/muparser.patch

# Patch version = "X.Y.Z" to "X.Y.99"
sed 's/version = "\([0-9]\+\)\.\([0-9]\+\)\.\([0-9]\+\)"/version = "\1.\2.99"/' < recipe/meta.yaml > meta.yaml
mv meta.yaml recipe/meta.yaml

cat > recipe/recipe_clobber.yaml <<EOL
source:
path: ../../../gdal
Expand Down
14 changes: 8 additions & 6 deletions ci/travis/conda/upload.sh
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
#!/bin/bash

set -e

if [ -z "${ANACONDA_TOKEN+x}" ]
then
echo "Anaconda token is not set, not uploading"
exit 0;
echo "Anaconda token is not set!"
exit 1
fi

ls
pwd
find .

if [ -z "${ANACONDA_TOKEN}" ]
then
echo "Anaconda token is empty, not uploading"
exit 0;
if [[ -n $(find . -name "*gdal*.conda") ]]; then
echo "Found packages to upload"
else
echo "No packages matching *gdal*.conda to upload found"
exit 1
fi

echo "Anaconda token is available, attempting to upload"
Expand Down
Loading