2022-11-14 02:59:12 +01:00
|
|
|
name: docs
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout ntfy code
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
-
|
|
|
|
name: Checkout docs pages code
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
repository: binwiederhier/ntfy-docs.github.io
|
2022-11-14 03:05:03 +01:00
|
|
|
path: build/ntfy-docs.github.io
|
2022-11-14 02:59:12 +01:00
|
|
|
-
|
|
|
|
name: Build docs
|
2022-11-14 03:05:03 +01:00
|
|
|
run: make docs
|
|
|
|
-
|
|
|
|
name: Copy generated docs
|
|
|
|
run: rsync -av --delete docs/ build/ntfy-docs.github.io/docs/
|
2022-11-14 02:59:12 +01:00
|
|
|
-
|
|
|
|
name: Publish docs
|
|
|
|
run: |
|
2022-11-14 03:05:03 +01:00
|
|
|
cd build/ntfy-docs.github.io
|
2022-11-14 02:59:12 +01:00
|
|
|
git config user.name "GitHub Actions Bot"
|
|
|
|
git config user.email "<>"
|
|
|
|
git add docs/
|
|
|
|
git commit -m "Updated docs"
|
|
|
|
git push origin main
|