Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/ci
Original file line number Diff line number Diff line change
@@ -98,7 +98,7 @@ deploy() {

on_deploy on_tag aws s3 sync doc/ s3://crystal-api/api/$CURRENT_TAG
on_deploy on_tag aws s3api put-object --bucket crystal-api --key api/index.html --website-redirect-location /api/$CURRENT_TAG
on_deploy on_tag aws s3api put-bucket-website --bucket crystal-api --cli-input-json '{"WebsiteConfiguration":{"IndexDocument": {"Suffix": "index.html"}, "RoutingRules": [{"Condition": { "KeyPrefixEquals" : "api/latest/" }, "Redirect": { "HttpRedirectCode" : "302", "ReplaceKeyPrefixWith" : "api/${CURRENT_TAG}/"}}]}}'
on_deploy on_tag aws s3api put-bucket-website --bucket crystal-api --cli-input-json "{\"WebsiteConfiguration\":{\"IndexDocument\": {\"Suffix\": \"index.html\"}, \"RoutingRules\": [{\"Condition\": { \"KeyPrefixEquals\" : \"api/latest/\" }, \"Redirect\": { \"HttpRedirectCode\" : \"302\", \"ReplaceKeyPrefixWith\" : \"api/${CURRENT_TAG}/\", \"Protocol\": \"https\", \"HostName\" : \"crystal-lang.org\"}},{\"Condition\": {\"KeyPrefixEquals\" : \"api/\", \"HttpErrorCodeReturnedEquals\": \"404\"}, \"Redirect\": { \"HttpRedirectCode\" : \"301\", \"ReplaceKeyPrefixWith\" : \"api/latest/\", \"Protocol\": \"https\", \"HostName\" : \"crystal-lang.org\"}}]}}"
}

prepare_build() {

0 comments on commit 5f6bd29

Please sign in to comment.