mirror of
https://github.com/Anduin2017/HowToCook.git
synced 2025-02-06 13:38:24 +08:00
chore: Remove build.sh script and update build workflow to use Continuous Deployment
This commit is contained in:
parent
5c16873a65
commit
97a3d6d9ce
28
build.sh
28
build.sh
@ -1,28 +0,0 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Requires: Ruby, node, python
|
||||
|
||||
tput setaf 2; echo "Cleaning up..."; tput sgr0
|
||||
rm ./node_modules -rf
|
||||
|
||||
tput setaf 2; echo "Generating new readme and mkdocs"; tput sgr0
|
||||
node ./.github/readme-generate.js
|
||||
|
||||
tput setaf 2; echo "Running markdown lint to check issues."; tput sgr0
|
||||
markdownlint ./dishes ./tips
|
||||
|
||||
tput setaf 2; echo "Installing python requirements..."; tput sgr0
|
||||
pip install -r requirements.txt --break-system-packages
|
||||
|
||||
tput setaf 2; echo "Builidng mkdocs and checking links..."; tput sgr0
|
||||
mkdocs build --strict
|
||||
|
||||
tput setaf 2; echo "Installing textlint"; tput sgr0
|
||||
npm install
|
||||
|
||||
tput setaf 2; echo "Running textlint..."; tput sgr0
|
||||
./node_modules/.bin/textlint . --fix
|
||||
|
||||
tput setaf 2; echo "Manual rule linting..."; tput sgr0
|
||||
node .github/manual_lint.js
|
Loading…
x
Reference in New Issue
Block a user