Skip to content

Commit 7af0c9b

Browse files
Add release action (#2)
1 parent 973a626 commit 7af0c9b

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

.github/workflows/release.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: release
2+
3+
on:
4+
release:
5+
types: [released]
6+
7+
8+
jobs:
9+
pypi:
10+
runs-on: ubuntu-latest
11+
12+
container:
13+
image: analysiscenter1/ds-py3
14+
15+
steps:
16+
- uses: actions/checkout@v3
17+
18+
- name: Install dependencies
19+
run: pip3 install --upgrade setuptools wheel twine
20+
21+
- name: Build and publish
22+
env:
23+
TWINE_USERNAME: __token__
24+
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
25+
run: |
26+
python3 setup.py sdist bdist_wheel
27+
twine upload --repository pypi dist/*

segfast/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
from .memmap_loader import MemmapLoader
44
from .loader import Loader, File, open #pylint: disable=redefined-builtin
55

6-
__version__ = '0.9.1'
6+
__version__ = '1.0.0'

0 commit comments

Comments
 (0)