mirror of
https://github.com/revanced/revanced-website.git
synced 2025-04-30 06:34:35 +02:00
chore: add ci build script
This commit is contained in:
parent
fb2185083c
commit
90a3893977
22
ci-build.sh
Executable file
22
ci-build.sh
Executable file
@ -0,0 +1,22 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# CD to the directory of this script.
|
||||||
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
|
docs_git_repo="${REVANCED_DOCS_REPO:-https://github.com/revanced/revanced-documentation.git}"
|
||||||
|
export REVANCED_DOCS_FOLDER="_docs_src"
|
||||||
|
|
||||||
|
git clone "$docs_git_repo" "$REVANCED_DOCS_FOLDER"
|
||||||
|
|
||||||
|
# Do this because the docs repo doesn't have any actual docs right now
|
||||||
|
cd "$REVANCED_DOCS_FOLDER"
|
||||||
|
cp README.md index.md
|
||||||
|
cd -
|
||||||
|
|
||||||
|
# Copy assets from docs repo to here.
|
||||||
|
mkdir -p static/docs
|
||||||
|
cp -r "$REVANCED_DOCS_FOLDER"/assets static/docs/assets || true
|
||||||
|
|
||||||
|
npm run build
|
Loading…
x
Reference in New Issue
Block a user