Skip to content

Commit e7c34ef

Browse files
authored
Release workflow for auto tagging and github releasing (#30)
* add release.yml * add on workflow call to python-app.yml * testing the workflow on release * remove build wheel step from release.yml * Revert "testing the workflow on release" This reverts commit b1d527e. * remove triggering on release branch for debugging * repo-viz make version 0.7.1 not main * disable diagram viz updater until githubocto/repo-visualizer/issues/58 * fix misleading step name in release.yml * python-app.yml delete push branch main trigger, pull trigger is enough * add .zenodo.json * add orcid ids to .zenodo.json
1 parent 3516632 commit e7c34ef

4 files changed

Lines changed: 104 additions & 6 deletions

File tree

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: Create diagram
22
on:
3-
pull_request:
4-
branches:
5-
- main
3+
# pull_request:
4+
# branches:
5+
# - main
66
push:
77
branches:
88
- viz
@@ -13,7 +13,7 @@ jobs:
1313
- name: Checkout code
1414
uses: actions/checkout@master
1515
- name: Update diagram
16-
uses: githubocto/repo-visualizer@main
16+
uses: githubocto/repo-visualizer@0.7.1
1717
with:
1818
excluded_paths: ".gitignore,.gitattributes,.github,feature_extraction/input-traces,validation/input/morphologies"
1919
file_colors: '{"json": "#fda7df", "mod": "#e43131", "yml": "#8d31e4", "ini": "#badc58", "dat": "#f3d44e", "xml": "#905614", "md" : "#f2346e", "asc": "#74e2c9"}'

.github/workflows/python-app.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
name: CI tests
55

66
on:
7-
push:
8-
branches: [ "main" ]
97
pull_request:
8+
workflow_call:
109

1110
permissions:
1211
contents: read

.github/workflows/release.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
call-test-workflow:
10+
uses: BlueBrain/SSCxEModelExamples/.github/workflows/python-app.yml@main
11+
12+
build-and-publish:
13+
name: Build and make a GitHub release
14+
runs-on: ubuntu-latest
15+
needs: call-test-workflow
16+
permissions:
17+
contents: write
18+
steps:
19+
- uses: actions/checkout@v3
20+
- name: Set up Python 3.10
21+
uses: actions/setup-python@v4
22+
with:
23+
python-version: "3.10"
24+
25+
- name: Fetch the tag, if any. If not tagged, create a patch tag
26+
uses: anothrNick/github-tag-action@1.64.0
27+
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
28+
id: tag
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
WITH_V: false
32+
DEFAULT_BUMP: patch
33+
34+
- name: Get and store the latest tag
35+
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
36+
run: echo "TAG_NAME=${{ steps.tag.outputs.new_tag }}" >> $GITHUB_ENV
37+
- name: Get and store tag from triggered tag push
38+
if: ${{ startsWith(github.ref, 'refs/tags/') }}
39+
run: echo "TAG_NAME=${{ github.ref_name }}" >> $GITHUB_ENV
40+
41+
- name: Release
42+
uses: softprops/action-gh-release@v1
43+
with:
44+
tag_name: ${{ env.TAG_NAME }}
45+
name: ${{ env.TAG_NAME }}
46+
generate_release_notes: true

.zenodo.json

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"title": "SSCxEModelExamples",
3+
"license": "CC-BY-4.0 license",
4+
"upload_type": "software",
5+
"description": "Repository for reproducing the work described at the 'A universal workflow for creation, validation and generalization of detailed neuronal models' publication.",
6+
"creators": [
7+
{
8+
"affiliation": "Blue Brain Project, EPFL",
9+
"name": "Reva, Maria",
10+
"orcid": "0000-0002-7901-1671"
11+
},
12+
{
13+
"affiliation": "Blue Brain Project, EPFL",
14+
"name": "Rössert, Christian",
15+
"orcid": "0000-0002-4839-2424"
16+
},
17+
{
18+
"affiliation": "Blue Brain Project, EPFL",
19+
"name": "Arnaudon, Alexis",
20+
"orcid": "0000-0001-9486-1458"
21+
},
22+
{
23+
"affiliation": "Blue Brain Project, EPFL",
24+
"name": "Damart, Tanguy",
25+
"orcid": "0000-0003-2175-7304"
26+
},
27+
{
28+
"affiliation": "Blue Brain Project, EPFL",
29+
"name": "Mandge, Darshan",
30+
"orcid": "0000-0002-7104-4604"
31+
},
32+
{
33+
"affiliation": "Blue Brain Project, EPFL",
34+
"name": "Tuncel, Anıl",
35+
"orcid": "0000-0003-0317-2556"
36+
},
37+
{
38+
"affiliation": "Blue Brain Project, EPFL",
39+
"name": "Ramaswamy, Srikanth",
40+
"orcid": "0000-0001-6642-7136"
41+
},
42+
{
43+
"affiliation": "Blue Brain Project, EPFL",
44+
"name": "Markram, Henry",
45+
"orcid": "0000-0001-6164-2590"
46+
},
47+
{
48+
"affiliation": "Blue Brain Project, EPFL",
49+
"name": "Van Geit, Werner",
50+
"orcid": "0000-0002-2915-720X"
51+
}
52+
]
53+
}

0 commit comments

Comments
 (0)