Skip to content

Commit

Permalink
fix: Upload both source and build distributions
Browse files Browse the repository at this point in the history
- Change source distribution artifact name to `source`
- Change `repository_url` to `repository-url`
- Up the project version for testing
  • Loading branch information
tfuxu committed Sep 4, 2023
1 parent fe448f4 commit cc0b79b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/build_wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ jobs:
- name: Build sdist
run: pipx run build --sdist

- uses: actions/upload-artifact@v3
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: source
path: dist/*.tar.gz

build_macos:
Expand Down Expand Up @@ -247,14 +249,20 @@ jobs:
id-token: write
if: github.event_name == 'push' # && startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/download-artifact@v3
- name: Get source distribution
uses: actions/download-artifact@v3
with:
name: artifact
name: source
path: dist
- name: Get all built distributions
uses: actions/download-artifact@v3
with:
name: wheels
path: dist
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository_url: https://test.pypi.org/legacy/
repository-url: https://test.pypi.org/legacy/

all_builds_passed:
needs:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "dither-go"
version = "0.2.0"
version = "0.2.1"
authors = [{name = "tfuxu"}]
description = "A fast and the most correct image dithering library"
readme = "README_PyPI.md"
Expand Down

0 comments on commit cc0b79b

Please sign in to comment.