diff --git a/.eleventy.js b/.eleventy.js
index c974fc9..31d6b33 100644
--- a/.eleventy.js
+++ b/.eleventy.js
@@ -1,7 +1,10 @@
const pluginTailwindCSS = require("eleventy-plugin-tailwindcss");
const pluginRss = require("@11ty/eleventy-plugin-rss");
+const cacheBuster = require('@mightyplow/eleventy-plugin-cache-buster');
module.exports = function (eleventyConfig) {
+ eleventyConfig.addPassthroughCopy("_content/images");
+
eleventyConfig.addPlugin(pluginTailwindCSS, {
src: "_includes/**/*.css",
keepFolderStructure: false,
@@ -9,6 +12,15 @@ module.exports = function (eleventyConfig) {
eleventyConfig.addPlugin(pluginRss);
+ const cacheBusterOptions = {
+ createResourceHash() {
+ return Date.now();
+ },
+ // outputDirectory: "_site",
+ };
+
+ eleventyConfig.addPlugin(cacheBuster(cacheBusterOptions));
+
eleventyConfig.addCollection("archive", (collectionApi) => {
const formatter = new Intl.DateTimeFormat("en-US", {
year: "numeric",
diff --git a/.github/workflows/build-deploy-prod.yml b/.github/workflows/build-deploy-prod.yml
new file mode 100644
index 0000000..b74371e
--- /dev/null
+++ b/.github/workflows/build-deploy-prod.yml
@@ -0,0 +1,27 @@
+name: Build and Deploy Production Site
+
+on:
+ push:
+ branches:
+ - main
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - name: setup node
+ uses: actions/setup-node@v1
+ with:
+ node-version: 14.x
+ - run: npm ci
+ - run: npm run build --if-present
+ - name: deploy site
+ uses: appleboy/scp-action@v0.1.1
+ with:
+ host: ${{ secrets.HOST }}
+ username: ${{ secrets.USERNAME }}
+ password: ${{ secrets.PASSWORD }}
+ source: "_site"
+ target: "/home/${{ secrets.USERNAME }}/erickruizdechavez.com"
+ strip_components: 1
diff --git a/.github/workflows/node.js.yml b/.github/workflows/build-deploy-staging.yml
similarity index 90%
rename from .github/workflows/node.js.yml
rename to .github/workflows/build-deploy-staging.yml
index 1be1b4b..eef679c 100644
--- a/.github/workflows/node.js.yml
+++ b/.github/workflows/build-deploy-staging.yml
@@ -1,8 +1,9 @@
-name: Build and Deploy site
+name: Build and Deploy Staging Site
on:
push:
- branches: [main]
+ branches:
+ - develop
jobs:
build:
diff --git a/_content/blog/2019-07-19-automation-with-cli-and-node.md b/_content/blog/2019-07-19-automation-with-cli-and-node.md
index 9e0b45c..4962463 100644
--- a/_content/blog/2019-07-19-automation-with-cli-and-node.md
+++ b/_content/blog/2019-07-19-automation-with-cli-and-node.md
@@ -23,11 +23,11 @@ The first step was to manually do what I needed to do, but not the usual repetit
My first automated take at this was to use [Keyboard Maestro](https://www.keyboardmaestro.com/main/). I was able to automate Safari to open a new tab, go to the URL I needed, using JavaScript get the information I needed from the website and show a notification and put it on the clipboard so I could paste it later on another place.
-[](https://erickruizdechavez.com/wp-content/uploads/2019/07/Image-7-19-19-at-9.47-AM.jpg)
+[![](/images/Image-7-19-19-at-9.47-AM.jpg)](/images/Image-7-19-19-at-9.47-AM.jpg)
And when run, it looks like this:
-[](https://erickruizdechavez.com/wp-content/uploads/2019/07/Screen-Shot-2019-07-19-at-10.10.29-AM.png)
+[![](/images/Screen-Shot-2019-07-19-at-10.10.29-AM.png)](/images/Screen-Shot-2019-07-19-at-10.10.29-AM.png)
After some testing and a couple of real-life uses, I noticed one thing. I do not need to authenticate to this page to grab the information, so I do not need Safari (or KM).
diff --git a/_content/contact.njk b/_content/contact.njk
index 98dc82a..62cda8c 100644
--- a/_content/contact.njk
+++ b/_content/contact.njk
@@ -2,3 +2,16 @@
title: Contact
---