Skip to content
This repository was archived by the owner on Dec 21, 2021. It is now read-only.

Commit 04d80ab

Browse files
authored
Add Github Action for publishing package to PyPI (#30)
1 parent d6fdfb6 commit 04d80ab

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Upload Python Package
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v1
12+
- name: Set up Python
13+
uses: actions/setup-python@v1
14+
with:
15+
python-version: '3.x'
16+
- name: Install dependencies
17+
run: |
18+
python -m pip install -U pip
19+
pip install poetry
20+
21+
poetry run pip install twine
22+
23+
- name: Build and publish
24+
env:
25+
TWINE_USERNAME: "__token__"
26+
TWINE_PASWOD: ${{ secrets.PYPI_TOKEN }}
27+
run: |
28+
poetry build -v
29+
poetry run twine uploada dist/*

pyproject.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,21 @@
22
name = "asff"
33
version = "0.1.0"
44
description = "asff is a Python library to work with Amazon Security Finding Format"
5+
license = "BSD-3-Clause"
56
authors = ["Adam Števko <[email protected]>"]
7+
maintainers = ["Adam Števko <[email protected]>"]
8+
readme = "README.md"
9+
homepage = "https://github.com/xen0l/python-asff"
10+
repository = "https://github.com/xen0l/python-asff"
11+
documentation = "https://python-asff.readthedocs.io/"
12+
keywords = [ "security", "aws", "asff", "secuityhub" ]
13+
classifiers = [
14+
"License :: OSI Approved :: BSD License",
15+
"Topic :: Security",
16+
]
17+
18+
[tool.poetry.urls]
19+
"Bug Tracker" = "https://github.com/xen0l/python-asff/issues"
620

721
[tool.poetry.dependencies]
822
python = "^3.6.1"

0 commit comments

Comments
 (0)