Skip to content

Commit 6beb7a3

Browse files
author
Bytesview Analytics
authored
Merge pull request #5 from bytesview/bytesview-patch-1
Create python-publish.yml
2 parents cec571b + d35b050 commit 6beb7a3

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# This workflow will upload a Python Package using Twine when a release is created
2+
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3+
4+
name: Upload Python Package
5+
6+
on:
7+
release:
8+
types: [created]
9+
10+
jobs:
11+
deploy:
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Set up Python
18+
uses: actions/setup-python@v2
19+
with:
20+
python-version: '3.8'
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install setuptools wheel twine pytest
25+
- name: Build and publish
26+
env:
27+
AUDIT_API_TOKEN: ${{ secrets.AUDIT_API_TOKEN }}
28+
TWINE_USERNAME: __token__
29+
TWINE_PASSWORD: ${{ secrets.FOLLOWERAUDITAPI_TOKEN }}
30+
run: |
31+
pytest
32+
python setup.py sdist bdist_wheel
33+
twine upload dist/*

0 commit comments

Comments
 (0)