Testing docs workflow (2)

This commit is contained in:
Philipp Heckel 2022-11-13 21:05:03 -05:00
parent aff193a003
commit 069617eba0

View File

@ -7,28 +7,22 @@ jobs:
- -
name: Checkout ntfy code name: Checkout ntfy code
uses: actions/checkout@v3 uses: actions/checkout@v3
with:
path: ntfy
- -
name: Checkout docs pages code name: Checkout docs pages code
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:
repository: binwiederhier/ntfy-docs.github.io repository: binwiederhier/ntfy-docs.github.io
path: ntfy-docs.github.io path: build/ntfy-docs.github.io
- -
name: Build docs name: Build docs
run: | run: make docs
pwd -
ls name: Copy generated docs
cd ntfy run: rsync -av --delete docs/ build/ntfy-docs.github.io/docs/
make docs
rsync -av --delete docs/ ../ntfy-docs.github.io/docs/
- -
name: Publish docs name: Publish docs
run: | run: |
pwd cd build/ntfy-docs.github.io
ls
cd ntfy-docs.github.io
git config user.name "GitHub Actions Bot" git config user.name "GitHub Actions Bot"
git config user.email "<>" git config user.email "<>"
git add docs/ git add docs/