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 sudo apt-get install git-lfs
git lfs pull git lfs pull
- name: install lektor - name: install lektor
run: pip install lektor run: make install
- name: build with lektor - name: build with lektor
run: | run: |
lektor build -f scss make build

View file

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

View file

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

View file

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