Skip to content

Commit

Permalink
[CI] Move TwineUpload logic to tools/pythonpkg folder
Browse files Browse the repository at this point in the history
  • Loading branch information
carlopi committed Mar 17, 2024
1 parent 0243cff commit 0b3985d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/TwineUpload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
else
TARGET="$OVERRIDE_GIT_DESCRIBE"
fi
cd tools/pythonpkg
mkdir to_be_uploaded
aws s3 cp --recursive "s3://duckdb-staging/$TARGET/$GITHUB_REPOSITORY/twine_upload" to_be_uploaded --region us-east-2
Expand All @@ -50,6 +51,7 @@ jobs:
TWINE_PASSWORD: ${{ secrets.TWINE_TOKEN }}
shell: bash
run: |
cd tools/pythonpkg
if [[ "$GITHUB_REF" =~ ^(refs/heads/main|refs/tags/v.+)$ && "$GITHUB_REPOSITORY" = "duckdb/duckdb" ]] ; then
twine upload --non-interactive --disable-progress-bar --skip-existing to_be_uploaded/*
fi

0 comments on commit 0b3985d

Please sign in to comment.