Add a GitHub Actions workflow to build and update website (#2603)

This commit is contained in:
itchyny authored and GitHub committed 2023-06-06 05:51:33 +09:00
1 parent 527ea012f3
commit cd4dc1e6d1
4 files changed
+48 -7

No files matched your search

+5 -4
View File
@@ -1,16 +1,17 @@
#!/bin/sh
#!/bin/bash
# This script builds the website from the docs directory of
# the current branch and copies it over to the gh-pages
# branch.
set -eu
set -o xtrace
set -eux
shopt -s dotglob
# build website
scriptdir=`dirname "$0"`
scriptdir=$(dirname "$0")
cd "$scriptdir"/../docs
rm -rf output
mkdir output
pipenv run python3 build_website.py
cd ..