Skip to content

Commit

Permalink
Publishing github action: name required artifacts on download
Browse files Browse the repository at this point in the history
Download didn't seem to find anything last time?
  • Loading branch information
ajjackson committed Jan 31, 2024
1 parent 8a3ccdc commit 46d41dc
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/build_upload_pypi_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ jobs:
numpy-version: 1.23.2
fail-fast: false
runs-on: ${{ matrix.os }}
environment:
name: pypi
url: https://pypi.org/p/euphonic
permissions:
id-token: write
steps:
Expand Down Expand Up @@ -97,16 +94,30 @@ jobs:
path: wheelhouse/*-${{ matrix.wheelname }}*.whl

publish:
runs-on: ubuntu-latest
needs: build
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/euphonic
permissions:
id-token: write
steps:
- name: Download build artifacts to Ubuntu environment
- name: Download source package to Ubuntu environment
uses: actions/download-artifact@v4
with:
name: python source distribution
path: dist/

- name: Download binary artifacts to Ubuntu environment
uses: actions/download-artifact@v4
with:
name: binary wheels
path: dist/

- name: List Files
run: ls -R

- name: Upload wheels to PyPI
# if: github.event_name == 'release'
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 46d41dc

Please sign in to comment.