Skip to content

Commit a0d9122

Browse files
committed
Merge branch 'omadson-ci/add-automate-pypi-package-publishing'
2 parents 856d789 + 18e70d7 commit a0d9122

3 files changed

Lines changed: 31 additions & 1 deletion

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Publish package
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
build:
9+
name: Publish package
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
with:
14+
fetch-depth: '0'
15+
- name: Set up Python 3.7
16+
uses: actions/setup-python@v2
17+
with:
18+
python-version: '3.7'
19+
- name: Install dependencies
20+
run: |
21+
pip install poetry poetry-dynamic-versioning
22+
- name: Publish package on pypi
23+
run: |
24+
poetry build
25+
poetry publish -u ${{ secrets.PYPI_USERNAME }} -p ${{ secrets.PYPI_PASSWORD }}

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ the `triggercmd` package is available in [PyPI](https://pypi.org/project/trigger
1414
```
1515
pip install triggercmd
1616
```
17+
Or using the [pipx](https://github.com/pypa/pipx) for a safer installation.
18+
1719
After install, you can use the triggercmd CLI client to manipulate commands on the TRIGGERcmd agent.
1820

1921
## commands

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,8 @@ typer-cli = "^0.0.12"
3333
triggercmd = 'triggercmd_cli.main:run'
3434

3535
[build-system]
36-
requires = ["poetry-core>=1.0.0"]
36+
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"]
3737
build-backend = "poetry.core.masonry.api"
38+
39+
[tool.poetry-dynamic-versioning]
40+
enable = true

0 commit comments

Comments
 (0)