Skip to content

Commit

Permalink
Switched to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
krateng committed Dec 23, 2021
1 parent 1a0f99f commit d344f49
Show file tree
Hide file tree
Showing 5 changed files with 736 additions and 28 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish to PyPI

on:
push:
tags:
- 'v*'

jobs:
publish_to_pypi:
name: Build and publish package
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install dependencies
run: pip install build

- name: Build package
run: python -m build

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
*.sh
*.conf
*.conf.old
*.yml
*.pyc
*.txt
htpassw
Expand Down
Loading

0 comments on commit d344f49

Please sign in to comment.