Skip to content
This repository has been archived by the owner on Jun 6, 2021. It is now read-only.

Commit

Permalink
i think we are ready
Browse files Browse the repository at this point in the history
  • Loading branch information
edk0 committed Mar 22, 2016
1 parent 212a495 commit e388932
Show file tree
Hide file tree
Showing 8 changed files with 52 additions and 46 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Expand Up @@ -10,7 +10,9 @@ before_install:
- npm install myth
- npm install svgo
- openssl aes-256-cbc -K $encrypted_ac880c30010f_key -iv $encrypted_ac880c30010f_iv
-in .deploy-key.enc -out .deploy-key -d && chmod go-rwx .deploy-key || true
after_success: ./deploy.sh
-in deploy/key1.enc -out deploy/key1 -d && chmod go-rwx deploy/key1 || true
- openssl aes-256-cbc -K $encrypted_2bfadd9dc6b8_key -iv $encrypted_2bfadd9dc6b8_iv
-in deploy/key2.enc -out deploy/key2 -d && chmod go-rwx deploy/key2 || true
after_success: ./deploy/deploy.sh
notifications:
email: false
17 changes: 5 additions & 12 deletions content/pages/404.md
@@ -1,15 +1,8 @@
title: 404 - Not found
title: 404Not Found
slug: 404
---
Sorry, the staff ran away with this page.
You've followed an outdated link (sorry) or otherwise ended up at a page that
doesn't exist.

Try kindly asking them at [#freenode](irc://chat.freenode.net:6667/freenode) to bring it back.


That didn't suit you apparently as you kept reading, but don't worry here's some steps you can take from here:

* [Go to the start page](index)

* [Learn how to connect to freenode](kb/connect/chat)

* [Use internet protection](https://www.privateinternetaccess.com/pages/buy-vpn/freend/)
Try starting from [the home page](index) or exploring the navigation links
below.
6 changes: 0 additions & 6 deletions content/pages/500.md

This file was deleted.

26 changes: 0 additions & 26 deletions deploy.sh

This file was deleted.

43 changes: 43 additions & 0 deletions deploy/deploy.sh
@@ -0,0 +1,43 @@
#!/bin/sh

if [ ! -f deploy/key1 ]; then exit; fi
if [ -z "$TRAVIS_BRANCH" ]; then exit; fi

BRANCH_DIR="$TRAVIS_BRANCH"

if [ "$TRAVIS_PULL_REQUEST" != false ]; then
if [ "$TRAVIS_BRANCH" != master ]; then exit; fi

BRANCH_DIR="pull-$TRAVIS_PULL_REQUEST"
fi

export SSH_KEYFILE="$(readlink -f deploy/key1)"
export GIT_SSH="$(readlink -f deploy/ssh.sh)"
git clone -b gh-pages git@github.com:freenode/web-7.0.git .deploy || exit 1
cd .deploy || exit 1
git config user.name travis
git config user.email travis@nowhere
git rm -r "$BRANCH_DIR/*"
mkdir -p "$BRANCH_DIR"
cd "$BRANCH_DIR" || exit 1
cp -r ../../out/* .
git add -A
git commit -m "travis: $TRAVIS_COMMIT"
git push || exit 1
cd ../..

if [ "$TRAVIS_BRANCH" = master -a "$TRAVIS_PULL_REQUEST" = false ]; then
rm -rf .deploy
export SSH_KEYFILE="$(readlink -f deploy/key2)"
export GIT_SSH="$(readlink -f deploy/ssh.sh)"
git clone git@github.com:freenode/freenode.github.io.git .deploy || exit 1
cd .deploy || exit 1
git config user.name travis
git config user.email travis@nowhere
git ls-files -z | grep -vzZE '^(README.md|LICENSE|CNAME)$' | xargs -0 rm -f
cp -r ../out/* .
git add -A
git commit -m "travis: $TRAVIS_COMMIT"
git push || exit 1
cd ..
fi
File renamed without changes.
Binary file added deploy/key2.enc
Binary file not shown.
File renamed without changes.

0 comments on commit e388932

Please sign in to comment.