-
Notifications
You must be signed in to change notification settings - Fork 5
42 lines (39 loc) · 1.03 KB
/
release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Release
on:
push:
branches:
- master
jobs:
release-on-push:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.release.outputs.version }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- id: release
uses: rymndhng/[email protected]
with:
bump_version_scheme: patch
pypi-deploy:
runs-on: ubuntu-latest
# run only on successful release
needs: release-on-push
steps:
- name: Checkout
uses: actions/[email protected]
- name: Set up python
uses: actions/[email protected]
with:
python-version: 3.8
architecture: x64
- name: Build
run: |
pip install wheel
echo "__version__ = '${{needs.release-on-push.outputs.version}}'" > frbcat/__version__.py
python setup.py sdist bdist_wheel
- name: Deploy
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}