1
0
مراية لـ https://github.com/postalserver/postal.git تم المزامنة 2025-12-01 05:43:04 +00:00

add script for generating and publishing the api docs to github

هذا الالتزام موجود في:
Adam Cooke
2017-05-05 19:54:56 +01:00
الأصل 553aedf031
التزام 88170af3cb

21
script/generate_api_docs.sh Executable file
عرض الملف

@@ -0,0 +1,21 @@
#!/bin/bash
set -e
if [ ! -d /tmp/postal-api/.git ];
then
git clone git@github.com:atech/postal-api /tmp/postal-api
else
git -C /tmp/postal-api pull origin master
git -C /tmp/postal-api reset --hard HEAD
fi
rm -Rf /tmp/postal-api/*
bundle exec moonrope api /tmp/postal-api
cd /tmp/postal-api
git add .
git commit -m "update docs"
git push origin master