-
Notifications
You must be signed in to change notification settings - Fork 11
35 lines (30 loc) · 860 Bytes
/
release.yml
File metadata and controls
35 lines (30 loc) · 860 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
29
30
31
32
33
34
35
name: Publish linkstatus to PyPI
on:
push:
branches:
- master
tags:
- '*'
jobs:
build-and-publish:
name: Build and publish Python 🐍 distributions to PyPI
if: startsWith(github.event.ref, 'refs/tags')
runs-on: ubuntu-latest
steps:
- name: Checkout to master
uses: actions/checkout@master
- name: Setup python
uses: actions/setup-python@v1
with:
python-version: '3.8'
architecture: 'x64'
- name: Build Package and Check
run: |
python -m pip install --upgrade setuptools wheel twine
python setup.py sdist bdist_wheel
python -m twine check dist/*
- name: Deploy to PyPi
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_linkstatus }}