Skip to content

Commit

Permalink
Merge pull request #158 from AurelienJaquier/release
Browse files Browse the repository at this point in the history
tag and release at each push to master
  • Loading branch information
wvangeit authored Aug 7, 2023
2 parents fca514c + f3e4c76 commit c37bf66
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 9 deletions.
41 changes: 33 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,47 @@ jobs:
call-test-workflow:
uses: BlueBrain/BluePyEfe/.github/workflows/test.yml@master

build-n-publish:
name: Build and publish on PyPI
build-tag-n-publish:
name: Build, tag and publish on PyPI
runs-on: ubuntu-latest
needs: call-test-workflow
permissions:
contents: write
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
fetch-depth: 0
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: "3.10"

- name: Bump version and push tag
uses: anothrNick/[email protected]
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
id: tag
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: false
DEFAULT_BUMP: patch

- name: Build a source tarball and wheel
run: |
pip install wheel
python setup.py sdist bdist_wheel
- name: Get and store tag from 'Bump version and push tag' step
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
run: echo "TAG_NAME=${{ steps.tag.outputs.new_tag }}" >> $GITHUB_ENV
- name: Get and store tag from triggered tag push
if: ${{ startsWith(github.ref, 'refs/tags/') }}
run: echo "TAG_NAME=${{ github.ref_name }}" >> $GITHUB_ENV

- name: Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ env.TAG_NAME }}
name: ${{ env.TAG_NAME }}
generate_release_notes: true

- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand Down
47 changes: 47 additions & 0 deletions .zenodo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"title" : "BluePyEfe",
"license": "LGPLv3",
"upload_type": "software",
"description": "BluePyEfe aims at easing the process of reading experimental recordings and extracting batches of electrical features from these recordings. To do so, it combines trace reading functions and features extraction functions from the eFel library. BluePyEfe outputs protocols and features files in the format used by BluePyOpt for neuron electrical model building.",
"creators": [
{
"affiliation": "Blue Brain Project, EPFL",
"name": "Rössert, Christian",
"orcid": "0000-0002-4839-2424"
},
{
"affiliation": "Blue Brain Project, EPFL",
"name": "Van Geit, Werner",
"orcid": "0000-0002-2915-720X"
},
{
"affiliation": "Blue Brain Project, EPFL",
"name": "Iavarone, Elisabetta",
"orcid": "0000-0001-5157-247X"
},
{
"affiliation": "Institute of Biophysics (IBF), CNR",
"name": "Bologna, Luca Leonardo",
"orcid": "0000-0002-7280-9285"
},
{
"affiliation": "Blue Brain Project, EPFL",
"name": "Damart, Tanguy",
"orcid": "0000-0003-2175-7304"
},
{
"affiliation": "Blue Brain Project, EPFL",
"name": "Sanin, Aleksei"
},
{
"affiliation": "Centre National de la Recherche Scientifique (CNRS)",
"name": "Davison, Andrew",
"orcid": "0000-0002-4793-7541"
},
{
"affiliation": "Blue Brain Project, EPFL",
"name": "Jaquier, Aurélien",
"orcid": "0000-0001-6202-6175"
}
]
}
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ BluePyEfe: Blue Brain Python E-feature extraction
<tr>
<td>DOI</td>
<td>
<a href="https://zenodo.org/badge/latestdoi/237923583">
<a href="https://doi.org/10.5281/zenodo.3728191">
<img src="https://zenodo.org/badge/237923583.svg" alt="DOI"/>
</a>
</td>
Expand Down

0 comments on commit c37bf66

Please sign in to comment.