From daad3bcdc85ff0405c67f84427ac12029239a089 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandru=20S=C4=83vulescu?= Date: Wed, 27 Oct 2021 09:55:06 +0200 Subject: [PATCH 1/2] CI Updates: live debugging for PRs only + docs deployment --- .github/workflows/coreneuron-ci.yml | 26 +++++++++++++------------- .github/workflows/coverage.yml | 1 - 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/.github/workflows/coreneuron-ci.yml b/.github/workflows/coreneuron-ci.yml index eeae814f8..914499528 100644 --- a/.github/workflows/coreneuron-ci.yml +++ b/.github/workflows/coreneuron-ci.yml @@ -8,7 +8,6 @@ on: push: branches: - master - - live-debug* - release/** pull_request: branches: @@ -140,11 +139,13 @@ jobs: PYTHON_VERSION: ${{ matrix.config.py_version || env.DEFAULT_PY_VERSION }} # This step will set up an SSH connection on tmate.io for live debugging. - # To trigger it, simply prefix your branch name with `live-debug` - # i.e.: live-debug-hocfix - - name: live debug session on failure - if: failure() && startsWith(github.ref, 'refs/heads/live-debug') + # To enable it, you have to: + # * add 'live-debug-ci' to your PR title + # * push something to your PR branch (note that just re-running the pipeline disregards the title update) + - name: live debug session on failure (manual steps required, check `.github/docs.yml`) + if: failure() && contains(github.event.pull_request.title, 'live-debug-ci') uses: mxschmitt/action-tmate@v3 + - name: Documentation if: ${{ startsWith(matrix.os, 'ubuntu') && matrix.config.documentation == 'ON' }} id: documentation @@ -158,11 +159,10 @@ jobs: touch .nojekyll; echo ::set-output name=status::done -# - name: Deploy 🚀 -# uses: JamesIves/github-pages-deploy-action@3.7.1 -# if: steps.documentation.outputs.status == 'done' -# with: -# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -# BRANCH: gh-pages # The branch the action should deploy to. -# FOLDER: ${{runner.workspace}}/nrn/build/docs # The folder the action should deploy. -# CLEAN: false # Automatically remove deleted files from the deploy branch + - name: Deploy 🚀 + uses: JamesIves/github-pages-deploy-action@4.1.5 + if: steps.documentation.outputs.status == 'done' && github.ref == 'refs/heads/master' + with: + branch: gh-pages # The branch the action should deploy to. + folder: ${{runner.workspace}}/nrn/docs/_build # The folder the action should deploy. + single-commit: true #have a single commit on the deployment branch instead of maintaining the full history diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 3bf90ea1c..9a787ceb3 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -8,7 +8,6 @@ on: push: branches: - master - - live-debug* - release/** pull_request: branches: From 98c20a06732bcb153b492f4007197d6ef15d5b39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandru=20S=C4=83vulescu?= Date: Wed, 27 Oct 2021 11:34:37 +0200 Subject: [PATCH 2/2] Update .github/workflows/coreneuron-ci.yml Co-authored-by: Ioannis Magkanaris --- .github/workflows/coreneuron-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/coreneuron-ci.yml b/.github/workflows/coreneuron-ci.yml index 914499528..7039da2e8 100644 --- a/.github/workflows/coreneuron-ci.yml +++ b/.github/workflows/coreneuron-ci.yml @@ -142,7 +142,7 @@ jobs: # To enable it, you have to: # * add 'live-debug-ci' to your PR title # * push something to your PR branch (note that just re-running the pipeline disregards the title update) - - name: live debug session on failure (manual steps required, check `.github/docs.yml`) + - name: live debug session on failure (manual steps required, check `.github/workflows/coreneuron-ci.yml`) if: failure() && contains(github.event.pull_request.title, 'live-debug-ci') uses: mxschmitt/action-tmate@v3