forked from InstaPy/InstaPy
-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (26 loc) · 729 Bytes
/
pypi.yaml
File metadata and controls
28 lines (26 loc) · 729 Bytes
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
name: PyPi
on:
push:
tags: ["*"]
jobs:
build:
runs-on: ubuntu-latest
name: Deploy to PyPi
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Install requirements
run: |
pip install --upgrade pip sdist wheel
pip install -r requirements.txt
- name: Build the package
run: python setup.py sdist bdist_wheel
- name: Publish package
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}