mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 06:17:49 +00:00
CI: Remove hugo build and deploy
This commit is contained in:
@@ -1,23 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
# build rust project
|
||||
make
|
||||
|
||||
# check formatting (rustfmt)
|
||||
PATH=~/.cargo/bin:$PATH
|
||||
cargo fmt -- --write-mode=diff
|
||||
|
||||
# clone hugo branch, which contains the blog template
|
||||
git clone --branch=hugo https://github.com/phil-opp/blog_os.git hugo
|
||||
cd hugo
|
||||
|
||||
# download hugo
|
||||
wget https://github.com/spf13/hugo/releases/download/v0.16/hugo_0.16_linux-64bit.tgz
|
||||
tar xf hugo_0.16_linux-64bit.tgz
|
||||
|
||||
# build the blog
|
||||
./hugo
|
||||
|
||||
cd ..
|
||||
@@ -1,24 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
[ "$TRAVIS_BRANCH" = master ]
|
||||
[ "$TRAVIS_PULL_REQUEST" = false ]
|
||||
|
||||
body='{
|
||||
"request": {
|
||||
"branch":"hugo",
|
||||
"config": {
|
||||
"env": {
|
||||
"matrix": ["UPDATE_COMMIT='"$TRAVIS_COMMIT"'"]
|
||||
}
|
||||
}
|
||||
}}'
|
||||
|
||||
curl -s -X POST \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Accept: application/json" \
|
||||
-H "Travis-API-Version: 3" \
|
||||
-H "Authorization: token $TRAVIS_TOKEN" \
|
||||
-d "$body" \
|
||||
https://api.travis-ci.org/repo/phil-opp%2Fblog_os/requests
|
||||
Reference in New Issue
Block a user