From a51b4331be77c32aa84297219b39f753a038b8ca Mon Sep 17 00:00:00 2001 From: David Irvine Date: Sat, 30 Nov 2024 21:12:45 +0000 Subject: [PATCH] fix: release step --- python-publish.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 python-publish.yml diff --git a/python-publish.yml b/python-publish.yml new file mode 100644 index 000000000..9c43247c5 --- /dev/null +++ b/python-publish.yml @@ -0,0 +1,25 @@ +release: + name: Release + runs-on: ubuntu-latest + needs: [macos, windows, linux, sdist] + permissions: + id-token: write + contents: read + steps: + - uses: actions/download-artifact@v3 + with: + path: dist + - name: Move files to dist directory + run: | + mkdir -p dist_flat + find dist -type f -exec mv {} dist_flat/ \; + rm -rf dist + mv dist_flat dist + - name: Display structure of downloaded files + run: ls -R dist + - name: Publish to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + packages-dir: dist/ + verbose: true + print-hash: true \ No newline at end of file