Skip to content

Commit 6b93126

Browse files
committed
add workflow_dispatch
1 parent bbfa400 commit 6b93126

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
2+
3+
name: Upload Python Package
4+
5+
on: workflow_dispatch
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- name: Set up Python
13+
uses: actions/setup-python@v4
14+
with:
15+
python-version: '3.9'
16+
- name: Install Dependencies
17+
run: |
18+
python -m pip install --upgrade pip
19+
pip install build
20+
pip install pylint
21+
pip install -r requirements.txt
22+
- name: Test API
23+
run: |
24+
pylint prismacloud/api
25+
- name: Build
26+
run: |
27+
python -m build
28+
- name: Publish
29+
uses: pypa/gh-action-pypi-publish@release/v1
30+
with:
31+
user: __token__
32+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)