-
-
Notifications
You must be signed in to change notification settings - Fork 672
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
👷 Add GitHub Actions to publish typer, typer-slim, typer-cli
- Loading branch information
Showing
1 changed file
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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) }} | ||
|