Skip to content

Commit

Permalink
docs: add example usage of pypi publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Sep 28, 2023
1 parent cbd9c9e commit 55a219f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/pypi_publish.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,21 @@ No outputs.
<!-- AUTO-DOC-SECRETS:START - Do not remove or modify this section -->
No secrets.
<!-- AUTO-DOC-SECRETS:END -->

## Example Usage

```yaml
name: Publish to PyPi.org

on:
release:
types: [published]
# Allow manual trigger (workflow_dispatch)
workflow_dispatch:

jobs:
publish_to_pypi:
uses: hotosm/gh-workflows/.github/workflows/pypi_publish.yml@main
secrets:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
```

0 comments on commit 55a219f

Please sign in to comment.