Skip to content

Commit

Permalink
fix: use build-and-inspect-packages, fix typo in guide (#322)
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
  • Loading branch information
henryiii committed Nov 29, 2023
1 parent 2dc3b36 commit 36b0452
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
6 changes: 4 additions & 2 deletions docs/pages/guides/gha_pure.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ later in the upload action for the release job, as well).
> ```
>
> The artifact it produces is named `Packages`, so that's what you need to use
> later to publish.
> later to publish. This will be used instead of the manual steps below.
And then, you need a release job:
Expand Down Expand Up @@ -201,6 +201,7 @@ name: CD
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
Expand Down Expand Up @@ -229,7 +230,7 @@ jobs:
steps:
- uses: actions/download-artifact@v3
with:
name: artifact
name: Packages
path: dist
- uses: pypa/gh-action-pypi-publish@release/v1
Expand All @@ -246,6 +247,7 @@ name: CD
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,7 @@ jobs:
with:
fetch-depth: 0

- name: Build sdist and wheel
run: pipx run build

- uses: actions/upload-artifact@v3
with:
path: dist

- name: Check products
run: pipx run twine check dist/*
- uses: hynek/build-and-inspect-python-package@v1

publish:
needs: [dist]
Expand All @@ -49,7 +41,7 @@ jobs:
steps:
- uses: actions/download-artifact@v3
with:
name: artifact
name: Packages
path: dist

- uses: pypa/gh-action-pypi-publish@release/v1
Expand Down

0 comments on commit 36b0452

Please sign in to comment.