Skip to content

Merge pull request #1253 from SpiNNakerManchester/t_pacman #397

Merge pull request #1253 from SpiNNakerManchester/t_pacman

Merge pull request #1253 from SpiNNakerManchester/t_pacman #397

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: c_common/doc/html
DEPLOY_DIR: deploy
jobs:
build:
permissions:
contents: write
runs-on: ubuntu-latest
timeout-minutes: 5
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
- name: Checkout SpiNNaker Dependencies
uses: ./support/actions/install-spinn-deps
with:
repositories: >
spinnaker_tools
install: true
- name: Read tags
run: make doxysetup
working-directory: c_common
- name: Build C documentation
uses: mattnotmitt/[email protected]
with:
working-directory: c_common
- 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 }}