Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit d6b866f

Browse files
CI Updates: live debugging for PRs only + docs deployment (#680)
* CI Updates: live debugging for PRs only + docs deployment Co-authored-by: Ioannis Magkanaris <iomagkanaris@gmail.com>
1 parent 29ef490 commit d6b866f

2 files changed

Lines changed: 13 additions & 14 deletions

File tree

.github/workflows/coreneuron-ci.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ on:
88
push:
99
branches:
1010
- master
11-
- live-debug*
1211
- release/**
1312
pull_request:
1413
branches:
@@ -140,11 +139,13 @@ jobs:
140139
PYTHON_VERSION: ${{ matrix.config.py_version || env.DEFAULT_PY_VERSION }}
141140

142141
# This step will set up an SSH connection on tmate.io for live debugging.
143-
# To trigger it, simply prefix your branch name with `live-debug`
144-
# i.e.: live-debug-hocfix
145-
- name: live debug session on failure
146-
if: failure() && startsWith(github.ref, 'refs/heads/live-debug')
142+
# To enable it, you have to:
143+
# * add 'live-debug-ci' to your PR title
144+
# * push something to your PR branch (note that just re-running the pipeline disregards the title update)
145+
- name: live debug session on failure (manual steps required, check `.github/workflows/coreneuron-ci.yml`)
146+
if: failure() && contains(github.event.pull_request.title, 'live-debug-ci')
147147
uses: mxschmitt/action-tmate@v3
148+
148149
- name: Documentation
149150
if: ${{ startsWith(matrix.os, 'ubuntu') && matrix.config.documentation == 'ON' }}
150151
id: documentation
@@ -158,11 +159,10 @@ jobs:
158159
touch .nojekyll;
159160
echo ::set-output name=status::done
160161
161-
# - name: Deploy 🚀
162-
# uses: JamesIves/github-pages-deploy-action@3.7.1
163-
# if: steps.documentation.outputs.status == 'done'
164-
# with:
165-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
166-
# BRANCH: gh-pages # The branch the action should deploy to.
167-
# FOLDER: ${{runner.workspace}}/nrn/build/docs # The folder the action should deploy.
168-
# CLEAN: false # Automatically remove deleted files from the deploy branch
162+
- name: Deploy 🚀
163+
uses: JamesIves/github-pages-deploy-action@4.1.5
164+
if: steps.documentation.outputs.status == 'done' && github.ref == 'refs/heads/master'
165+
with:
166+
branch: gh-pages # The branch the action should deploy to.
167+
folder: ${{runner.workspace}}/nrn/docs/_build # The folder the action should deploy.
168+
single-commit: true #have a single commit on the deployment branch instead of maintaining the full history

.github/workflows/coverage.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ on:
88
push:
99
branches:
1010
- master
11-
- live-debug*
1211
- release/**
1312
pull_request:
1413
branches:

0 commit comments

Comments
 (0)