Skip to content

Implementation of an986 USB Ethernet adapter module #730

Implementation of an986 USB Ethernet adapter module

Implementation of an986 USB Ethernet adapter module #730

Workflow file for this run

name: github pages
on:
push: {}
pull_request: {}
workflow_dispatch: {}
env:
DEBIAN_FRONTEND: noninteractive
TZ: Japan
jobs:
build-docs:
runs-on: ubuntu-latest
timeout-minutes: 20
container:
image: ubuntu:20.04
options: "--user 0"
steps:
- name: Set up base environment
run: apt-get -y update && apt-get -y -o Dpkg::Options::='--force-confdef' -o Dpkg::Options::='--force-confold' install build-essential git doxygen graphviz p7zip-full
- name: Checkout repository
uses: actions/checkout@v7
- name: Mark all git directories safe
run: git config --global --add safe.directory '*'
- name: Build documentation
run: |
export PS2DEV=$PWD/ps2dev
export PS2SDK=$PS2DEV/ps2sdk
make -j $(getconf _NPROCESSORS_ONLN) ONLY_HOST_TOOLS=1 docs
- name: Upload artifact
uses: actions/upload-artifact@v7
with:
name: ${{ github.event.repository.name }}-docs
path: ./*.tgz
publish-github-pages:
needs: [build-docs]
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Download all artifacts
uses: actions/download-artifact@v7
- name: Extract artifact
run: |
mkdir -p docs/html
find . -name "*.tgz" -exec tar -xpzf {} -C docs/html \;
- name: Deploy
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/html
force_orphan: true