Skip to content

Commit

Permalink
fix artifact upload, wheel naming
Browse files Browse the repository at this point in the history
  • Loading branch information
carderne committed Jul 31, 2024
1 parent 83a4ed8 commit ec9fbd4
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
cd pysqlcipher3
python setup.py build_amalgamation
python setup.py build
echo 'PLATFORM_TAG="manylinux2014_x86_64"' >> $GITHUB_ENV
- name: build pysqlcipher3 macOS
if: matrix.os == 'macos-latest'
Expand All @@ -43,6 +44,7 @@ jobs:
cd pysqlcipher3
python setup.py build_amalgamation
python setup.py build
echo 'PLATFORM_TAG="macosx_10_9_universal2"' >> $GITHUB_ENV
- name: post-build pysqlcipher3
run: |
Expand All @@ -53,9 +55,8 @@ jobs:
run: |
pip install build
python -m build
PLATFORM_TAG=$(python -c 'import sysconfig; print(sysconfig.get_platform().replace("-", "_").replace(".", "_"))')
cd dist
NEW_NAME=$(ls *.whl | sed "s/any.whl$/${PLATFORM_TAG}.whl/")
NEW_NAME=$(ls *.whl | sed "s/any.whl$/${{ env.PLATFORM_TAG }}.whl/")
mv *.whl $NEW_NAME
echo "WHEEL_NAME=$(ls *.whl)" >> $GITHUB_ENV
echo "SDIST_NAME=$(ls *.tar.gz)" >> $GITHUB_ENV
Expand Down Expand Up @@ -83,12 +84,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
merge-multiple: true

- name: Copy artifacts to dist/ folder
run: |
mkdir -p dist/
find . -name '*.tar.gz' -exec mv '{}' dist/ \;
find . -name '*.whl' -exec mv '{}' dist/ \;
mv *.tar.gz dist/
mv *.whl dist/
- name: Upload
uses: pypa/gh-action-pypi-publish@v1.4.2
Expand Down

0 comments on commit ec9fbd4

Please sign in to comment.