[REF] GENFI-To-BIDS : Separation of write_bids
into 3 functions…
#1105
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Deloy Documentation | |
on: | |
push: | |
branches: ["master", "dev", "maint-*"] | |
pull_request: | |
branches: ["master", "dev", "maint-*"] | |
permissions: | |
contents: read | |
concurrency: | |
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' | |
cancel-in-progress: true | |
jobs: | |
build-and-deploy-doc: | |
runs-on: | |
- self-hosted | |
- Linux | |
- doc-runner | |
steps: | |
- uses: actions/checkout@v5 | |
- name: Build documentation | |
run: | | |
make env.conda | |
source ~/miniconda3/etc/profile.d/conda.sh | |
conda activate "${{ github.workspace }}"/env | |
make doc | |
- name: Deploy documentation | |
run: | | |
if [[ -z "${{ github.event.number }}" ]]; | |
then | |
BRANCH_NAME="${{ github.ref_name }}" | |
else | |
BRANCH_NAME="PR-${{ github.event.number }}" | |
fi | |
echo $BRANCH_NAME | |
mv site "${BRANCH_NAME}" | |
ls "${BRANCH_NAME}" | |
rsync -zav "${BRANCH_NAME}" aramislab:/srv/local/clinica/docs/public/ |