Skip to content
Myr

website: deploy website from GitHub Actions (#3237)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Deploying GitHub Pages from the gh-pages branch is a classic way. We can use actions/deploy-pages action to deploy GitHub Pages.

authored by itchyny · committed by GitHub · parent da28628 · Browse files · 2 files+24 added−47 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+24 added−47 removed

  • other:+24 added−47 removed

2 files+24 added−47 removed

modified:.github/workflows/website.yml+24 added-17 removed
deleted:scripts/update-website-30 removed
1#!/bin/bash23# This script builds the website from the docs directory of4# the current branch and copies it over to the gh-pages5# branch.67set -eux8shopt -s dotglob910# build website11scriptdir=$(dirname "$0")12cd "$scriptdir"/../docs13rm -rf output14mkdir output15pipenv run python3 build_website.py16cd ..1718# copy to /tmp19tmpdir=$(mktemp -d -t jq.website.XXXXXXXXXX)20cp -r docs/output/* "$tmpdir"21cp .gitignore "$tmpdir"2223# copy to gh-pages24git checkout gh-pages25cp -r "$tmpdir"/* .26cp "$tmpdir"/.gitignore .2728# clean up29rm -rf "$tmpdir"30echo SUCCESS