mirror of
https://github.com/badlogic/heissepreise.git
synced 2024-06-19 23:18:45 +02:00
More workflow changes.
This commit is contained in:
parent
a42ad8738c
commit
70b66fd55e
2
pages.js
2
pages.js
|
@ -1,7 +1,7 @@
|
|||
const fs = require("fs");
|
||||
const analysis = require("./analysis.js");
|
||||
|
||||
if (process.argv.length < 4) {
|
||||
if (process.argv.length < 3) {
|
||||
console.log("Usage: node pages.js <data-dir>");
|
||||
console.log()
|
||||
console.log("e.g. node pages.js data/");
|
||||
|
|
4
pages.sh
4
pages.sh
|
@ -4,7 +4,7 @@ if [[ $repository_name == *.github.io ]]; then
|
|||
echo "Name ends with github.io"
|
||||
else
|
||||
echo "Name does not end with github.io, not generating pages"
|
||||
exit
|
||||
# exit
|
||||
fi
|
||||
|
||||
rm -rf tmp-data
|
||||
|
@ -17,7 +17,7 @@ node pages.js tmp-data
|
|||
cp tmp-data/latest-canonical.json docs
|
||||
|
||||
cp site/* docs
|
||||
pushd pages
|
||||
pushd docs
|
||||
git add *
|
||||
git commit -am "Updated $(date +'%Y-%m-%d')"
|
||||
git push
|
||||
|
|
Loading…
Reference in New Issue
Block a user