gnucash-docs stable: Multiple changes pushed
John Ralls
jralls at code.gnucash.org
Tue Aug 1 17:09:20 EDT 2023
Updated via https://github.com/Gnucash/gnucash-docs/commit/51f9e69f (commit)
via https://github.com/Gnucash/gnucash-docs/commit/90acc3d3 (commit)
from https://github.com/Gnucash/gnucash-docs/commit/00ec128b (commit)
commit 51f9e69fe6fe6146ca9b9b84d75d3d60d04cdf28
Author: John Ralls <jralls at ceridwen.us>
Date: Tue Aug 1 14:07:19 2023 -0700
Run nightly-build action nightly
But run only on the GnuCash official mirror repo.
diff --git a/.github/workflows/nightly-build.yml b/.github/workflows/nightly-build.yml
index 9b42d961..b8d7360b 100644
--- a/.github/workflows/nightly-build.yml
+++ b/.github/workflows/nightly-build.yml
@@ -1,8 +1,12 @@
name: nightly-build
-on: workflow_dispatch
+on:
+ workflow_dispatch:
+ schedule:
+ - cron: '43 5 * * *'
jobs:
build-documentation:
+ if: github.repository == 'gnucash/gnucash-docs'
runs-on: ubuntu-latest
name: make HTML in Ubuntu-latest
steps:
commit 90acc3d3348428a87d462546af9221c8c2eb6cd0
Author: John Ralls <jralls at ceridwen.us>
Date: Sun Jul 30 16:45:15 2023 -0700
Add nightly-build github workflow.
diff --git a/.github/workflows/nightly-build.yml b/.github/workflows/nightly-build.yml
new file mode 100644
index 00000000..9b42d961
--- /dev/null
+++ b/.github/workflows/nightly-build.yml
@@ -0,0 +1,60 @@
+name: nightly-build
+on: workflow_dispatch
+
+jobs:
+ build-documentation:
+ runs-on: ubuntu-latest
+ name: make HTML in Ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout at v3
+ - run: sudo apt-get update
+ - name: Install minimal dependencies
+ run: sudo apt-get install -y cmake ninja-build libxml2-utils xsltproc docbook-xsl
+ - run: |
+ echo "ROOT_DIR=$GITHUB_WORKSPACE/.." >> $GITHUB_ENV
+ - name: Create Directories
+ run: |
+ pwd
+ mkdir $ROOT_DIR/inst
+ mkdir build
+ - name: Configure GnuCash-docs
+ run: |
+ cd build
+ cmake -G Ninja -DCMAKE_INSTALL_PREFIX=$ROOT_DIR/inst $GITHUB_WORKSPACE -DWITH_MOBI=ON
+ - name: Build HTML
+ run: |
+ cd build
+ ninja html
+ - uses: actions/upload-artifact at v2
+ if: failure()
+ with:
+ name: TestLog
+ path: ${{ github.workspace }}/build/Testing/Temporary/LastTest.log
+ - name: Prepare upload
+ if: success()
+ run: |
+ mkdir build/github-pages
+ mv build/share/doc/* build/github-pages/
+ chmod -v -R +rX "build/github-pages" | while read line; do
+ echo "::warning title=Invalid file permissions automatically fixed::$line"
+ done
+ - name: Upload pages
+ uses: actions/upload-pages-artifact at v2
+ if: success()
+ with:
+ path: ${{ github.workspace }}/build/github-pages
+
+ deploy-documentation:
+ needs: build-documentation
+ permissions:
+ pages: write
+ id-token: write
+ environment:
+ name: github-pages
+ url: ${{ steps.deployment.outputs.page_url }}
+ runs-on: ubuntu-latest
+ steps:
+ - name: Publish
+ id: deployment
+ uses: actions/deploy-pages at v2
Summary of changes:
.github/workflows/nightly-build.yml | 64 +++++++++++++++++++++++++++++++++++++
1 file changed, 64 insertions(+)
create mode 100644 .github/workflows/nightly-build.yml
More information about the gnucash-changes
mailing list