Skip to content

Commit 680fd2f

Browse files
committed
added github publish workflow
1 parent 9a8a5ec commit 680fd2f

2 files changed

Lines changed: 28 additions & 1 deletion

File tree

.github/workflows/publish.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Publish
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
9+
deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- name: Set up Python
14+
uses: actions/setup-python@v4
15+
with:
16+
python-version: '3.7'
17+
- name: Install dependencies
18+
run: |
19+
python -m pip install --upgrade pip
20+
pip install build
21+
- name: Build package
22+
run: python -m build
23+
- name: Publish package
24+
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
25+
with:
26+
user: __token__
27+
password: ${{ secrets.PYPI_API_TOKEN }}

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
setup(
88
name='saibr',
9-
version='0.1.3',
9+
version='0.1.4',
1010
license="CC BY 4.0",
1111
author='Tom Bland',
1212
author_email='tom_bland@hotmail.co.uk',

0 commit comments

Comments
 (0)