-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version 1.1.0 #1
Conversation
Well, well, well, if it isn't the consequences of my own actions. Rebased PR on base branch after doing the fuckery to fix git blame for v1.0.0 in main. This mess is a product of my own incompetence. |
Re-signed unverified commits since GitHub's auto rebase doesn't sign them. What a mess. |
Forgot to document this in the fix that removed sed from header generation
#3) A user might want to use XML reserved characters in their page metadata, not realising that this would break the sitemap or RSS feed. This PR implements a cleaner function to ensure such characters are automatically replaced with escape codes at runtime. This PR also adds a new unit test to make sure that the sanitisation actually works so that we don't break it down the line.
…aging (#5) The way the deployment workflow worked originally is that it was hardcoded to deploy to a branch html, so if we wanted to test changes in staging we had to manually edit the workflow. This PR adds a check to determine whether the branch we're working on is main or not. If it's main, deployments go to production. If it's not, deployments go to staging.
Tested and verified it works. Also dogfooded this on my personal website to make sure nothing breaks. This new version is good to go! |
# Arise v1.1.0 --- ## Changelog - Bumped `actions/checkout@v2` to `actions/checkout@v4`. No impact from this change. - Removed `sed` from the metadata tag evaluation in `build_header`. Replaced with Bash native pattern matching so that this evaluation is safer. - Added checks to automatically rewrite any XML reserved characters (&<>'") as their escape codes when present in page metadata (title, author, etc). - Rewrote the way a majority of the page metadata values are parsed in `get_page_metadata` to make the parsing more robust. This was necessary because previously unescaped double quotes (`"`) would break the parser. The workaround was to use escape codes, but if we're automatically parsing escape codes then we need a way to put these characters in unescaped now. - Added a CI test suite to build the default site and test to make sure that the XML reserved characters are getting properly escaped. This is helpful because it allows me to more continuously ensure that commits I make in dev don't break the site. - Added a Smart Deploy step in the deployment workflow to check whether the triggering branch is `main` or not so that CICD can intelligently deploy the site to either production or staging depending on what branch triggered the deployment.
Arise v1.1.0
Changelog
actions/checkout@v2
toactions/checkout@v4
. No impact from this change.sed
from the metadata tag evaluation inbuild_header
. Replaced with Bash native pattern matching so that this evaluation is safer.get_page_metadata
to make the parsing more robust. This was necessary because previously unescaped double quotes ("
) would break the parser. The workaround was to use escape codes, but if we're automatically parsing escape codes then we need a way to put these characters in unescaped now.main
or not so that CICD can intelligently deploy the site to either production or staging depending on what branch triggered the deployment.