mirror of
https://github.com/postalserver/postal.git
synced 2026-10-19 18:56:05 +00:00
add script for generating and publishing the api docs to github
This commit is contained in:
Executable
+21
@@ -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
|
||||||
Reference in New Issue
Block a user