Merge pull request #73 from SoftwareDefinedVehicle/improve_sdv_intro_… #68
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
| # /******************************************************************************** | |
| # * Copyright (c) 2022 Contributors to the Eclipse Foundation | |
| # * | |
| # * See the NOTICE file(s) distributed with this work for additional | |
| # * information regarding copyright ownership. | |
| # * | |
| # * This program and the accompanying materials are made available under the | |
| # * terms of the Eclipse Public License 2.0 which is available at | |
| # * http://www.eclipse.org/legal/epl-2.0 | |
| # * | |
| # * SPDX-License-Identifier: EPL-2.0 | |
| # ********************************************************************************/ | |
| name: CI workflow | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - "main" | |
| jobs: | |
| Build-documentation: | |
| runs-on: ubuntu-latest | |
| name: Building documentation | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v2 | |
| - name: Setup Hugo | |
| uses: peaceiris/actions-hugo@v2 | |
| with: | |
| hugo-version: "0.110.0" | |
| extended: true | |
| - name: Download theme | |
| run: | | |
| git clone https://github.com/google/docsy.git themes/docsy | |
| - name: Install theme | |
| working-directory: ./themes/docsy | |
| run: | | |
| npm i | |
| - name: Build | |
| run: | | |
| export NODE_PATH=$NODE_PATH:`npm root -g` | |
| npm i -g postcss postcss-cli autoprefixer | |
| echo "Build documentation for GitHub Pages" | |
| hugo | |
| # only publish pages if it's the upstream | |
| - name: Publish to GH Pages | |
| if: github.repository_owner == 'eclipse-leda' | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./public | |
| publish_branch: gh_pages |