File tree Expand file tree Collapse file tree 1 file changed +51
-0
lines changed
Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build wheels
2+
3+ on :
4+ release :
5+ types : [created, edited]
6+ pull_request :
7+ types : [opened, reopened, edited, synchronize]
8+
9+ # A workflow run is made up of one or more jobs that can run sequentially or in parallel
10+ jobs :
11+ # This workflow contains a single job called "build"
12+ build :
13+ # The type of runner that the job will run on
14+ runs-on : ubuntu-latest
15+ strategy :
16+ matrix :
17+ python-version : [3.8]
18+
19+ # Steps represent a sequence of tasks that will be executed as part of the job
20+ steps :
21+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
22+ - uses : actions/checkout@v2
23+
24+ # Set up Python environment
25+ - name : Set up Python 3.8
26+ uses : actions/setup-python@v2
27+ with :
28+ python-version : 3.8
29+
30+ # Install dependencies
31+ - name : Install dependencies
32+ run : |
33+ python -m pip install --upgrade pip
34+ pip install -r development.txt
35+
36+ # Build wheels
37+ - name : Build wheels
38+ run : python setup.py sdist bdist_wheel
39+
40+ - uses : actions/upload-artifact@v2
41+ with :
42+ path : |
43+ ./dist/*.tar.gz
44+
45+ # Publish to pypi
46+ - name : Publish to pypi
47+ env :
48+ TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
49+ TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
50+ if : ${{ github.event_name == 'release' && env.TWINE_USERNAME != null }}
51+ run : twine upload --repository pypi dist/*
You can’t perform that action at this time.
0 commit comments