Update secret var
Update lektor-deploy.yml Update lektor-deploy.yml Update lektor-deploy.yml try other caching method try other caching method try other caching method try to improve caching - again try improved caching method? syntax error fixed syntax error fixed syntax error fixed syntax error fixed syntax error fixed syntax error fixed syntax error fixed syntax error fixed Now use the correct syntax! Now use the correct syntax!
This commit is contained in:
parent
fe87628aed
commit
b690ca1722
4 changed files with 27 additions and 25 deletions
17
.github/workflows/lektor-check.yml
vendored
17
.github/workflows/lektor-check.yml
vendored
|
@ -18,17 +18,22 @@ jobs:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
- name: Cache lfs data
|
- name: Cache lfs
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: ~/.git
|
path: ~/.cache/lektor
|
||||||
|
key: lektorcache
|
||||||
|
- name: Cache lfs
|
||||||
|
uses: actions/cache@v1
|
||||||
|
with:
|
||||||
|
path: .git
|
||||||
key: lfs
|
key: lfs
|
||||||
- name: install and pull lfs
|
- name: install and pull lfs
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get install git-lfs
|
sudo apt-get install git-lfs
|
||||||
git lfs pull
|
git lfs pull
|
||||||
- name: check with lektor
|
- name: install lektor
|
||||||
|
run: pip install lektor
|
||||||
|
- name: build with lektor
|
||||||
run: |
|
run: |
|
||||||
pip install lektor
|
lektor build -f scss
|
||||||
# stop the build if there are Python syntax errors or undefined names
|
|
||||||
lektor build -f scss
|
|
||||||
|
|
30
.github/workflows/lektor-deploy.yml
vendored
30
.github/workflows/lektor-deploy.yml
vendored
|
@ -7,7 +7,7 @@ on:
|
||||||
|
|
||||||
# Environment variables available to all jobs and steps in this workflow
|
# Environment variables available to all jobs and steps in this workflow
|
||||||
env:
|
env:
|
||||||
GKE_PROJECT: ${{ secrets.GKE_PROJECT }}
|
LEKTOR_DEPLOY_KEY: ${{ secrets.LEKTOR_DEPLOY_KEY }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
@ -29,30 +29,22 @@ jobs:
|
||||||
- name: Cache lfs data
|
- name: Cache lfs data
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: ~/.git
|
path: .git
|
||||||
key: |
|
key: .git/lfs
|
||||||
0
|
- name: install git-lfs && lektor
|
||||||
1
|
|
||||||
2
|
|
||||||
3
|
|
||||||
4
|
|
||||||
5
|
|
||||||
6
|
|
||||||
7
|
|
||||||
8
|
|
||||||
9
|
|
||||||
lfs
|
|
||||||
- name: install git-lfs
|
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get install git-lfs
|
sudo apt-get install git-lfs
|
||||||
sudo apt-get autoremove
|
pip install lektor
|
||||||
|
- name: Cache lektor .cache
|
||||||
|
uses: actions/cache@v1
|
||||||
|
with:
|
||||||
|
path: ~/.cache/lektor
|
||||||
|
key: lektorcache
|
||||||
- name: pull lfs data
|
- name: pull lfs data
|
||||||
run: git lfs pull
|
run: git lfs pull
|
||||||
- name: build with lektor
|
- name: build with lektor
|
||||||
run: |
|
run: |
|
||||||
pip install lektor
|
lektor build -f scss
|
||||||
# stop the build if there are Python syntax errors or undefined names
|
|
||||||
lektor build -f scss
|
|
||||||
- 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
|
||||||
|
|
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -12,6 +12,9 @@ Session.vim
|
||||||
# auto-generated tag files
|
# auto-generated tag files
|
||||||
tags
|
tags
|
||||||
|
|
||||||
|
# lektor
|
||||||
|
.cache/
|
||||||
|
|
||||||
# ---> Windows
|
# ---> Windows
|
||||||
# Windows thumbnail cache files
|
# Windows thumbnail cache files
|
||||||
Thumbs.db
|
Thumbs.db
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -50,6 +50,7 @@ pull:
|
||||||
git pull origin master
|
git pull origin master
|
||||||
|
|
||||||
push:
|
push:
|
||||||
|
rm .lfsconfig
|
||||||
if git config remote.gitea.url > /dev/null; then
|
if git config remote.gitea.url > /dev/null; then
|
||||||
git push gitea master
|
git push gitea master
|
||||||
else
|
else
|
||||||
|
@ -62,3 +63,4 @@ push:
|
||||||
git remote add github git@github.com:c3woc/c3woc-website.git
|
git remote add github git@github.com:c3woc/c3woc-website.git
|
||||||
git push github master
|
git push github master
|
||||||
fi
|
fi
|
||||||
|
git restore .lfsconfig
|
||||||
|
|
Loading…
Reference in a new issue