Skip to content

Commit

Permalink
Update py_ext_main.yml
Browse files Browse the repository at this point in the history
tweak deploy job
  • Loading branch information
paullinnerud authored Jan 6, 2022
1 parent bdb7c40 commit b0567c1
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/py_ext_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ jobs:
- name: Upload Source Distribution
uses: actions/upload-artifact@v2
with:
name: source-dist
path: ./dist/*.zip

deploy:
Expand All @@ -64,20 +65,31 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.x"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade setuptools cython wheel twine
- name: Download artifacts from build jobs
uses: actions/download-artifact@v2
with:
path: dist/
path: wheelhouse/

- name: Move wheels and source dist to dist/ directory
run: |
ls wheelhouse/*
mkdir -p dist/
mv source-dist/*.zip dist/
for wheel_dir in wheelhouse/uharfbuzz*/; do
mv "${wheel_dir}"/*.whl dist/
done

- uses: pypa/gh-action-pypi-publish@master
with:
Expand Down

0 comments on commit b0567c1

Please sign in to comment.