Skip to content

Commit

Permalink
feat: resert domain to https://sabre.io`, add CNAME file and remove …
Browse files Browse the repository at this point in the history
…old deployment stuff
  • Loading branch information
DeepDiver1975 committed Nov 14, 2023
1 parent 5670d0e commit 1f26e5d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 44 deletions.
30 changes: 3 additions & 27 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,12 @@ URL = https://${DOMAIN}

SOURCE_MD_FILES = $(shell find source/ -type f -name "*.md" -or -name "*.html")

.PHONY: all, generate, do-deploy, server, output_dev, output_prod, output_gh
.PHONY: all, server, output_dev, output_gh

all: do-deploy
all: output_dev, output_gh

generate: composer.lock output_prod
gh-pages: composer.lock output_gh

do-deploy: generate
cd deploy && \
echo "Fetching latest changes" && \
git checkout master && \
git pull && \
echo "Copying over the latest website version" && \
rm -r * && \
cp -r ../output_prod/* . && \
touch .nojekkyl && \
echo $(DOMAIN) > CNAME && \
git add -A && \
git commit -m "Automatic deployment `date -u`" && \
echo "Pushing changes" && \
git push origin master && \
echo "Deploy complete"

server:
vendor/bin/sculpin generate --watch --server

Expand All @@ -43,24 +26,17 @@ vendor/autoload.php:

output_dev: output_dev/atom.xml

output_prod: output_prod/atom.xml

output_gh: output_gh/atom.xml

output_dev/atom.xml: source/css/sabre.css $(SOURCE_MD_FILES)
# atom.xml always changes to the latest date and time, so we can use this
# as the main target to figure out if the source changed at all.
vendor/bin/sculpin generate --env=dev --url=$(URL)

output_prod/atom.xml: source/css/sabre.css $(SOURCE_MD_FILES)
# atom.xml always changes to the latest date and time, so we can use this
# as the main target to figure out if the source changed at all.
vendor/bin/sculpin generate --env=prod --url=$(URL)

output_gh/atom.xml: source/css/sabre.css $(SOURCE_MD_FILES)
# atom.xml always changes to the latest date and time, so we can use this
# as the main target to figure out if the source changed at all.
vendor/bin/sculpin generate --env=gh --url=https://sabre-io.github.io/sabre.io
vendor/bin/sculpin generate --env=gh --url=$(URL)


YUI = $(shell which yuicompressor || which yui-compressor)
Expand Down
3 changes: 0 additions & 3 deletions app/config/sculpin_site_prod.yml

This file was deleted.

13 changes: 0 additions & 13 deletions setup_deploy.sh

This file was deleted.

1 change: 1 addition & 0 deletions source/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sabre.io
2 changes: 1 addition & 1 deletion source/_layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
{% endif %}

{% block mainwrapper %}
<main{% if page.sidebar != "none" %} class="incl-sidebar"{% endif %}>
<main {% if page.sidebar != "none" %} class="incl-sidebar"{% endif %}>
{% if page.sidebar != "none" %}
{% include "sidebar.html" %}
{% endif %}
Expand Down

0 comments on commit 1f26e5d

Please sign in to comment.