Update Makefil

This commit is contained in:
Lilian Roller 2020-02-07 14:35:05 +01:00
parent 47672ee10f
commit 66e1b1cd94
No known key found for this signature in database
GPG key ID: 5215C3441797AB2B
4 changed files with 11 additions and 12 deletions

View file

@ -33,7 +33,7 @@ jobs:
sudo apt-get install git-lfs
git lfs pull
- name: install lektor
run: pip install lektor
run: make install
- name: build with lektor
run: |
lektor build -f scss
make build

View file

@ -34,7 +34,7 @@ jobs:
- name: install git-lfs && lektor
run: |
sudo apt-get install git-lfs
pip install lektor
make install
- name: Cache lektor .cache
uses: actions/cache@v1
with:
@ -44,7 +44,7 @@ jobs:
run: git lfs pull
- name: build with lektor
run: |
lektor build -f scss
make build
- name: deploy new site
run: |
echo 'c3woc.de ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBC5NslYj+wtriBuKIxJfDRm9E2hnlstWR8durQ6pKvVvP7wjcoXIyAxe41GvJ9SoEhSjF7oVlzlw+zAkzl5WOZ4=' | sudo tee /etc/ssh/ssh_known_hosts

View file

@ -6,13 +6,14 @@ cache:
directories:
- $HOME/.cache/pip
- .git/lfs
- $HOME/.cache/lektor
before_install:
- git lfs pull
install:
- "pip install Lektor"
- make install
script:
- make build
script: "lektor build"
before_deploy: "echo 'c3woc.de ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBC5NslYj+wtriBuKIxJfDRm9E2hnlstWR8durQ6pKvVvP7wjcoXIyAxe41GvJ9SoEhSjF7oVlzlw+zAkzl5WOZ4=' > ~/.ssh/known_hosts"
deploy:
provider: script
script: "lektor deploy --key $LEKTOR_DEPLOY_KEY c3woc"
# before_deploy: "echo 'c3woc.de ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBC5NslYj+wtriBuKIxJfDRm9E2hnlstWR8durQ6pKvVvP7wjcoXIyAxe41GvJ9SoEhSjF7oVlzlw+zAkzl5WOZ4=' > ~/.ssh/known_hosts"
# deploy:
# provider: script
# script: "lektor deploy --key $LEKTOR_DEPLOY_KEY c3woc"

View file

@ -21,8 +21,6 @@ install:
build:
lektor clean --yes
lektor plugin flush-cache
python3 -m lektor build $(LEKTOR_PLUGIN_FLAGS)
server: