Skip to content

Merge pull request #1509 from SpiNNakerManchester/fix_one_to_one_perf… #372

Merge pull request #1509 from SpiNNakerManchester/fix_one_to_one_perf…

Merge pull request #1509 from SpiNNakerManchester/fix_one_to_one_perf… #372

Workflow file for this run

# Copyright (c) 2020 The University of Manchester
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Publish
on:
push:
branches: [ master ]
env:
ROOT_DOC_DIR: doc/global
C_DOC_DIR: neural_modelling/html
DEPLOY_DIR: deploy
jobs:
build:
permissions:
contents: write
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Checkout SupportScripts
uses: actions/checkout@v4
with:
repository: SpiNNakerManchester/SupportScripts
path: support
- name: Set dynamic environment variables
run: |
echo "SPINN_DIRS=$PWD/spinnaker_tools" >> $GITHUB_ENV
echo "NEURAL_MODELLING_DIRS=$PWD/neural_modelling" >> $GITHUB_ENV
- name: Checkout SpiNNaker Dependencies
uses: ./support/actions/install-spinn-deps
with:
repositories: >
spinnaker_tools
install: true
- name: Read tags
run: make doxysetup
working-directory: neural_modelling
- name: Build C documentation
uses: mattnotmitt/[email protected]
with:
working-directory: neural_modelling
- name: Merge documentation trees
run: |
cp -vaT $ROOT_DOC_DIR $DEPLOY_DIR
cp -vaT $C_DOC_DIR $DEPLOY_DIR/c
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: ${{ env.DEPLOY_DIR }}