Skip to content

Commit fbeb067

Browse files
committed
Add github actions deployment
1 parent 62ac2c4 commit fbeb067

File tree

3 files changed

+47
-31
lines changed

3 files changed

+47
-31
lines changed

.github/workflows/publish.yaml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Publish Python 🐍 distribution 📦 to PyPI and TestPyPI
2+
3+
on: push
4+
5+
jobs:
6+
build:
7+
name: Build distribution 📦
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- name: Set up Python
12+
uses: actions/setup-python@v4
13+
with:
14+
python-version: "3.x"
15+
- name: Install pypa/build
16+
run: >-
17+
python3 -m
18+
pip install
19+
build
20+
--user
21+
- name: Build a binary wheel and a source tarball
22+
run: python3 -m build
23+
- name: Store the distribution packages
24+
uses: actions/upload-artifact@v3
25+
with:
26+
name: python-package-distributions
27+
path: dist/
28+
publish-to-pypi:
29+
name: >-
30+
Publish Python 🐍 distribution 📦 to PyPI
31+
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
32+
needs:
33+
- build
34+
runs-on: ubuntu-latest
35+
environment:
36+
name: pypi
37+
url: https://pypi.org/p/async-irc
38+
permissions:
39+
id-token: write # IMPORTANT: mandatory for trusted publishing
40+
steps:
41+
- name: Download all the dists
42+
uses: actions/download-artifact@v3
43+
with:
44+
name: python-package-distributions
45+
path: dist/
46+
- name: Publish distribution 📦 to PyPI
47+
uses: pypa/gh-action-pypi-publish@release/v1

.travis.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

requirements.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
pytest==5.4.1
22
pytest-cov==2.11.1
3-
pytest-pep8==1.0.6
4-
pytest-travis-fold==1.3.0
5-
python-coveralls==2.9.3
63
setuptools==46.1.3
74
py-irclib>=0.1.3.1

0 commit comments

Comments
 (0)