aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Triguba <eugenetriguba@gmail.com>2020-01-19 15:11:46 -0600
committerGitHub <noreply@github.com>2020-01-19 15:11:46 -0600
commitb08257ed633ec533796efa9b83f972213f4b2601 (patch)
tree8466ef14908567cef5de93ee4c8f06af4bdf056f
parentAdd spacing (diff)
downloadconfig-file-b08257ed633ec533796efa9b83f972213f4b2601.zip
Create publish_to_pypi.yml
Automatically publish to PyPI on a new release tag
-rw-r--r--.github/workflows/publish_to_pypi.yml26
1 files changed, 26 insertions, 0 deletions
diff --git a/.github/workflows/publish_to_pypi.yml b/.github/workflows/publish_to_pypi.yml
new file mode 100644
index 0000000..02914b0
--- /dev/null
+++ b/.github/workflows/publish_to_pypi.yml
@@ -0,0 +1,26 @@
+name: Publish to PyPI
+
+on:
+ release:
+ types: [created]
+
+jobs:
+ deploy:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v1
+ - name: Set up Python
+ uses: actions/setup-python@v1
+ with:
+ python-version: '3.8'
+ - name: Install dependencies
+ run: |
+ python -m pip install --upgrade pip
+ pip install poetry twine
+ - name: Build and publish
+ env:
+ TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
+ TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
+ run: |
+ poetry build
+ twine upload dist/*