-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #938 from alexwlchan/caddy
Add a Caddyfile for running alexwlchan.net
- Loading branch information
Showing
23 changed files
with
1,606 additions
and
1,457 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -110,26 +110,21 @@ jobs: | |
echo "There is no _drafts folder, so nothing to publish!" | ||
fi | ||
- name: Deploy to Netlify | ||
id: deploy_to_netlify | ||
uses: nwtgck/[email protected] | ||
- name: Test you can see the Linode | ||
if: github.ref == 'refs/heads/main' | ||
run: | ||
ping -c 1 178.79.134.59 | ||
|
||
- name: Deploy to Linode | ||
uses: burnett01/[email protected] | ||
if: github.ref == 'refs/heads/main' | ||
with: | ||
publish-dir: "_site" | ||
production-branch: main | ||
github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | ||
deploy-message: "Deploy from GitHub Actions" | ||
enable-pull-request-comment: true | ||
overwrites-pull-request-comment: true | ||
netlify-config-path: netlify.toml | ||
env: | ||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | ||
NETLIFY_SITE_ID: "da37a488-4df9-4cc2-b267-947179af20bd" | ||
timeout-minutes: 1 | ||
|
||
- name: Print Netlify Deploy URL | ||
env: | ||
SITE_URL: ${{steps.deploy_to_netlify.outputs.deploy-url}} | ||
run: echo "$SITE_URL" | ||
switches: -avzr --progress --delete --exclude="" --include="" --filter="" | ||
path: _site/ | ||
remote_path: repos/alexwlchan.net/_site | ||
remote_host: "178.79.134.59" | ||
remote_user: alexwlchan | ||
remote_key: ${{ secrets.DEPLOY_KEY }} | ||
|
||
- name: "Run the website tests" | ||
run: ruby tests/run_all_tests.rb | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
handle /analytics/a.js { | ||
error 410 | ||
} | ||
|
||
handle /theme/style-sample { | ||
error 410 | ||
} | ||
|
||
handle /images/talks/oxford_git.jpg { | ||
error 410 | ||
} | ||
|
||
handle /images/talks/suspicious_minds.jpg { | ||
error 410 | ||
} | ||
|
||
handle /images/talks/worst_intent.png { | ||
error 410 | ||
} | ||
|
||
handle /projects/ { | ||
error 410 | ||
} | ||
|
||
|
||
|
||
|
||
|
||
# == Posts which I've removed == # | ||
|
||
# I took this post down in June 2023 | ||
handle /2019/removing-the-drm-from-my-kindle-books/ { | ||
error 410 | ||
} | ||
|
||
handle /2019/08/removing-the-drm-from-my-kindle-books/ { | ||
error 410 | ||
} | ||
|
||
# I removed these posts because they were short link posts of minimal value | ||
|
||
handle /2014/12/war-on-christmas/ { | ||
error 410 | ||
} | ||
|
||
handle /2014/war-on-christmas/ { | ||
error 410 | ||
} | ||
|
||
handle /2015/01/bbfc-podcast/ { | ||
error 410 | ||
} | ||
|
||
handle /2015/bbfc-podcast/ { | ||
error 410 | ||
} | ||
|
||
handle /2015/01/govuk/ { | ||
error 410 | ||
} | ||
|
||
handle /2015/govuk/ { | ||
error 410 | ||
} | ||
|
||
handle /2015/01/kings-cross-problems/ { | ||
error 410 | ||
} | ||
|
||
handle /2015/kings-cross-problems/ { | ||
error 410 | ||
} | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
# == Files which I've removed == # | ||
|
||
handle /files/boiler_instructions.pdf { | ||
error 410 | ||
} | ||
|
||
handle /files/colossus.pdf { | ||
error 410 | ||
} | ||
|
||
handle /files/ga-privacy.txt { | ||
error 410 | ||
} | ||
|
||
handle /files/rock-crushers.txt { | ||
error 410 | ||
} | ||
|
||
handle /talks/campug_git.pdf { | ||
error 410 | ||
} | ||
|
||
handle /talks/colossus_operators.jpg { | ||
error 410 | ||
} | ||
|
||
handle /talks/hypothesis_cover.png { | ||
error 410 | ||
} | ||
|
||
handle /talks/pyconuk2016_cover.png { | ||
error 410 | ||
} | ||
|
||
# == # |
Oops, something went wrong.