Skip to content

Commit

Permalink
add website
Browse files Browse the repository at this point in the history
  • Loading branch information
ilg-ul committed Nov 18, 2023
1 parent 440701a commit 36d36d4
Show file tree
Hide file tree
Showing 16 changed files with 4,708 additions and 1,251 deletions.
122 changes: 122 additions & 0 deletions .github/workflows/publish-github-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
# Simple workflow for deploying static content to GitHub Pages
name: GitHub Pages

# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions

# https://github.com/micro-os-plus/utils-lists-xpack/actions/workflows/publish-github-pages.yml
# https://micro-os-plus.github.io/utils-lists-xpack/

# TODO: remove xpack-develop

on:
# Runs on pushes, if all conditions are met:
push:
# ... on the master branch ...
branches:
- 'xpack'
- 'xpack-develop'
# ... skip tags only ...
tags-ignore:
- '**'
# ... any of these files changes ...
paths:
- 'website/**'
- 'src/**'
- 'include/**'
- '.github/workflows/publish-github-pages.yml'
- 'package.json'

# Allow one concurrent deployment
# https://docs.github.com/en/actions/using-jobs/using-concurrency
concurrency:
group: "pages"
cancel-in-progress: true

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

jobs:

build:
name: Build the Doxygen pages

strategy:
matrix:
# https://www.npmjs.com/package/xpm
xpm-version: [ '0.18.0' ]
# https://nodejs.org/en - use LTS
node-version: [ '18' ]

# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
runs-on: ubuntu-22.04

steps:
- name: Checkout
# https://github.com/actions/checkout
uses: actions/checkout@v4
with:
fetch-depth: 3

- name: Use Node.js
# https://github.com/actions/setup-node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install Doxygen
# https://www.doxygen.nl/download.html
env:
DOXYGEN_VERSION: "1.9.8"
run: |
curl https://www.doxygen.nl/files/doxygen-$DOXYGEN_VERSION.linux.bin.tar.gz --output doxygen-$DOXYGEN_VERSION.linux.bin.tar.gz
tar xf doxygen-$DOXYGEN_VERSION.linux.bin.tar.gz
ls -l doxygen-$DOXYGEN_VERSION
mkdir -pv .local/bin
ln -sv $(pwd)/doxygen-$DOXYGEN_VERSION/bin/doxygen .local/bin/doxygen
ls -l
- name: Install xpm@${{ matrix.xpm-version }}
run: |
npm install -g xpm@${{ matrix.xpm-version }}
- name: Install dependencies
# For the build helper and the Doxygen theme.
run: |
xpm install
- name: Build site with Doxygen
run: .local/bin/doxygen website/config.doxyfile

- name: Configure Pages
# https://github.com/actions/configure-pages
uses: actions/configure-pages@v3

- name: Upload Pages artifact
# https://github.com/actions/upload-pages-artifact
uses: actions/upload-pages-artifact@v1
with:
# Upload entire repository
path: './website/html'

deploy:
name: Deploy to GitHub Pages

needs: build

# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
runs-on: ubuntu-22.04

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Deploy to GitHub Pages
id: deployment # referred by environment above, to get the URL.
# https://github.com/actions/deploy-pages
uses: actions/deploy-pages@v2
with:
artifact_name: github-pages
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -157,4 +157,6 @@ build/

tests/top

website/html/

# end
Loading

0 comments on commit 36d36d4

Please sign in to comment.