media-server: Ban all requests from robots #315
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
--- | |
name: docs | |
on: | |
push: | |
branches: [master] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: purcell/setup-emacs@master | |
with: | |
version: 27.1 | |
- name: Build docs | |
run: |- | |
set -e | |
mv .github assets | |
sed -i -e 's/\.\/\.github/.\/assets/g' ./README.org | |
script=$(cat <<- 'EOF' | |
(progn | |
(require 'package) | |
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/")) | |
(package-initialize) | |
(unless (package-installed-p 'htmlize) | |
(package-refresh-contents) | |
(package-install 'htmlize)) | |
(find-file "./README.org") | |
(org-html-export-to-html)) | |
EOF | |
) | |
emacs --batch --eval "$script" | |
mv ./README.html index.html | |
# XXX: I Give up, this is way too messy for it's own good. | |
# - name: Deploy | |
# uses: peaceiris/actions-gh-pages@v3 | |
# with: | |
# github_token: ${{ secrets.DOTFILES_PAGES_KEY }} | |
# publish_dir: . | |
# publish_branch: gh-pages | |
# commit_message: "deploy: ${{ github.event.head_commit.message }}" | |
# exclude_assets: '' | |
# enable_jekyll: false |