From 7c7f08f422e8b9ed15e35a3657f0bf49b6072a75 Mon Sep 17 00:00:00 2001 From: Nick Chan Date: Mon, 6 Feb 2023 15:53:02 +0800 Subject: [PATCH] build documentation --- .github/workflows/build.yml | 27 +++++++++++++++++++++++++++ Makefile | 2 ++ 2 files changed, 29 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4b62c01..7e420cf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,6 +6,33 @@ on: workflow_dispatch: jobs: + build-docs: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Install dependencies (packages) + run: sudo apt install mandoc make + + - name: Build Documentation + run: | + make -j$(nproc) docs + mkdir ready + cp palera1n.1.html ready + + - name: Upload artifact + uses: wangyucode/sftp-upload-action@v1.4.8 + with: + host: ${{ secrets.NICKCHAN_FTP_HOST }} + port: ${{ secrets.NICKCHAN_FTP_PORT }} + username: palera1n + privateKey: ${{ secrets.NICKCHAN_FTP_KEY }} + forceUpload: true + dryRun: false + localDir: 'ready/' + remoteDir: '/palera1n/artifacts/c-rewrite' + build-darwin: strategy: matrix: diff --git a/Makefile b/Makefile index be93472..6ad714c 100644 --- a/Makefile +++ b/Makefile @@ -61,6 +61,8 @@ download-deps: palera1n.1.html: palera1n.1 mandoc -T html palera1n.1 > palera1n.1.html +docs: palera1n.1.html + distclean: clean rm -rf palera1n-* palera1n*.dSYM src/checkra1n-* src/checkra1n-kpf-pongo src/ramdisk.dmg src/binpack.dmg palera1n.html