From aff193a0036d0120c515e301d7e06f3ce865728a Mon Sep 17 00:00:00 2001 From: Philipp Heckel Date: Sun, 13 Nov 2022 20:59:12 -0500 Subject: [PATCH] Testing docs workflow (1) --- .github/workflows/docs.yaml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/docs.yaml diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml new file mode 100644 index 0000000..2a744a3 --- /dev/null +++ b/.github/workflows/docs.yaml @@ -0,0 +1,36 @@ +name: docs +on: [push, pull_request] +jobs: + build: + runs-on: ubuntu-latest + steps: + - + name: Checkout ntfy code + uses: actions/checkout@v3 + with: + path: ntfy + - + name: Checkout docs pages code + uses: actions/checkout@v3 + with: + repository: binwiederhier/ntfy-docs.github.io + path: ntfy-docs.github.io + - + name: Build docs + run: | + pwd + ls + cd ntfy + make docs + rsync -av --delete docs/ ../ntfy-docs.github.io/docs/ + - + name: Publish docs + run: | + pwd + ls + cd ntfy-docs.github.io + git config user.name "GitHub Actions Bot" + git config user.email "<>" + git add docs/ + git commit -m "Updated docs" + git push origin main