Skip to content

Commit a580890

Browse files
Merge pull request #2 from mxenabled/bm/add_github_action
Add GitHub Action
2 parents a8b3832 + 3c27733 commit a580890

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/publish.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
branches: [master]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-python@v2
13+
with:
14+
python-version: '3.x'
15+
- name: Install build
16+
run: python -m pip install build
17+
- name: Build dist files
18+
run: python -m build
19+
- name: Publish a Python distribution to PyPI
20+
uses: pypa/gh-action-pypi-publish@release/v1
21+
with:
22+
user: __token__
23+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)