Skip to content

Commit 3c27733

Browse files
author
Brett Mortensen
committed
Add GitHub Action
Adds GitHub Action to the Python library that will automate building/publishing to PyPI on pushes to the master branch.
1 parent a8b3832 commit 3c27733

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)