Skip to content

Commit ab1ce88

Browse files
authored
Merge pull request #55 from EGA-archive/releases/v1.8
Pushing to PyPI using Github Actions
2 parents c8f6647 + 3746b1f commit ab1ce88

4 files changed

Lines changed: 16 additions & 9 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
name: Publish wheels
22

3-
on: # only when we tag the master branch
3+
4+
on:
45
push:
56
tags:
6-
- v[0-9]+.*
7-
branches:
8-
- master
7+
- v[1-9]+.*
8+
99

1010
jobs:
1111
build_wheels:
@@ -87,6 +87,7 @@ jobs:
8787

8888

8989
publish-to-testpypi:
90+
if: github.ref_type == 'tag' && github.event.base_ref != 'refs/heads/master'
9091
needs: [build_wheels, build_sdist]
9192
runs-on: ubuntu-latest
9293

@@ -105,12 +106,12 @@ jobs:
105106
path: dist
106107

107108
- name: Publish distribution to Test PyPI
108-
# if: github.ref_type == 'branch'
109109
uses: pypa/gh-action-pypi-publish@release/v1
110110
with:
111111
repository-url: https://test.pypi.org/legacy/
112112

113113
publish-to-pypi:
114+
if: github.ref_type == 'tag' && github.event.base_ref == 'refs/heads/master'
114115
needs: [build_wheels, build_sdist]
115116
runs-on: ubuntu-latest
116117

@@ -129,5 +130,4 @@ jobs:
129130
path: dist
130131

131132
- name: Publish distribution to PyPI
132-
# if: github.ref_type == 'tag'
133133
uses: pypa/gh-action-pypi-publish@release/v1

.github/workflows/testsuite.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
name: Testsuite
22

3-
on: [push]
3+
on:
4+
push:
5+
branches:
6+
# - master
7+
# - releases/*
8+
- '**' # cover everything
9+
tags-ignore:
10+
- '**' # but never on tags
411

512
jobs:
613

crypt4gh/__init__.py

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

3838

3939
__title__ = 'GA4GH cryptographic utilities'
40-
__version__ = '1.8' # VERSION in header is 1 (as 4 bytes little endian)
40+
__version__ = '1.8.2' # VERSION in header is 1 (as 4 bytes little endian)
4141
__author__ = 'Frédéric Haziza'
4242
__author_email__ = 'silverdaz@gmail.com'
4343
__license__ = 'Apache License 2.0'

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def run(self):
106106
print('Could not install bash completion:', repr(e), file=sys.stderr)
107107

108108
setup(name='crypt4gh',
109-
version='1.8',
109+
version='1.8.2',
110110
url='https://www.github.com/EGA-archive/crypt4gh',
111111
license='Apache License 2.0',
112112
author='Frédéric Haziza',

0 commit comments

Comments
 (0)