-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
4,708 additions
and
1,251 deletions.
There are no files selected for viewing
This file contains 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
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 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -157,4 +157,6 @@ build/ | |
|
||
tests/top | ||
|
||
website/html/ | ||
|
||
# end |
Oops, something went wrong.