Skip to content

Commit

Permalink
Deploy using zips
Browse files Browse the repository at this point in the history
  • Loading branch information
raffomania committed Jul 10, 2023
1 parent 7ad6a98 commit b6ce428
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
RUST_LOG=info
SUBMISSIONS=input/submissions.json
COMMENTS=input/comments.json
LIMIT_POSTS=2020-01-01
LIMIT_POSTS=2020-01-01
NETLIFY_TOKEN=token for deploying to netlify
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ comments*

# rendered output
output
output.zip

# Local Netlify folder
.netlify
9 changes: 7 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -106,5 +106,10 @@ init:

# push the output to netlify
deploy:
just run --limit-posts=2022-06-01 --submissions=input/ah_posts.json --comments=input/ah_comments.json
netlify deploy --dir output --prod --site ask-historians-archive
just run -- --limit-posts=2022-01-01 --submissions=input/ah_posts.json --comments=input/ah_comments.json
rm -f output.zip
zip -r output.zip output
xh -v POST \
https://api.netlify.com/api/v1/sites/ask-historians-archive.netlify.app/deploys \
"Content-Type:application/zip" "Authorization:Bearer $NETLIFY_TOKEN" \
"@output.zip"

0 comments on commit b6ce428

Please sign in to comment.