Skip to content

Commit

Permalink
👷 Add GitHub Actions to publish typer, typer-slim, typer-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
tiangolo committed Mar 30, 2024
1 parent 983e4b3 commit ab3f782
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,23 @@ on:
release:
types:
- created
# TODO: remove this
push:
branches:
- typer-slim

jobs:
publish:
runs-on: ubuntu-latest
strategy:
matrix:
package_dir:
- ./
- typer_package
- typer_cli_package
defaults:
run:
working-directory: ${{ matrix.package_dir }}
steps:
- name: Dump GitHub context
env:
Expand All @@ -28,7 +41,11 @@ jobs:
- name: Publish
uses: pypa/[email protected]
with:
password: ${{ secrets.PYPI_API_TOKEN }}
# TODO: uncomment this
# password: ${{ secrets.PYPI_API_TOKEN }}
# TODO: remove this
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
Expand Down

0 comments on commit ab3f782

Please sign in to comment.