Skip to content

Commit

Permalink
馃懛 Update GitHub Actions to build and publish
Browse files Browse the repository at this point in the history
  • Loading branch information
tiangolo committed Mar 30, 2024
1 parent 30ee488 commit 3f056bf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ jobs:
- ./
- typer_package
- typer_cli_package
defaults:
run:
working-directory: ${{ matrix.package_dir }}
steps:
- name: Dump GitHub context
env:
Expand All @@ -37,6 +34,7 @@ jobs:
- name: Install build dependencies
run: pip install build
- name: Build distribution
working-directory: ${{ matrix.package_dir }}
run: python -m build
- name: Publish
uses: pypa/gh-action-pypi-publish@v1.8.11
Expand All @@ -46,6 +44,7 @@ jobs:
# TODO: remove this
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/
packages-dir: ${{ matrix.package_dir }}/dist/
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
Expand Down

0 comments on commit 3f056bf

Please sign in to comment.