Skip to content

Commit 310bc2f

Browse files
committed
add deploy gha
1 parent 383b383 commit 310bc2f

2 files changed

Lines changed: 26 additions & 1 deletion

File tree

.github/workflows/deploy.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: deploy to pypi
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Set up Python
13+
uses: actions/setup-python@v2
14+
with:
15+
python-version: '3.9'
16+
- name: Install poetry
17+
uses: snok/install-poetry@v1
18+
with:
19+
version: 1.5.1
20+
- name: Build and publish to PyPI
21+
env:
22+
TWINE_API_KEY: ${{ secrets.TWINE_API_KEY }}
23+
run: |
24+
poetry config pypi-token.pypi $TWINE_API_KEY
25+
poetry publish --build

src/hier_config_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import click
2-
from hier_config import WorkflowRemediation, get_hconfig, Platform
2+
from hier_config import Platform, WorkflowRemediation, get_hconfig
33
from hier_config.utils import read_text_from_file
44

55
# Mapping for driver platforms

0 commit comments

Comments
 (0)