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:
L3D 2020-02-07 01:00:30 +01:00 committed by Lilian Roller
parent fe87628aed
commit b690ca1722
No known key found for this signature in database
GPG key ID: 5215C3441797AB2B
4 changed files with 27 additions and 25 deletions

View file

@ -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
# stop the build if there are Python syntax errors or undefined names
lektor build -f scss lektor build -f scss

View file

@ -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,29 +29,21 @@ 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
# stop the build if there are Python syntax errors or undefined names
lektor build -f scss lektor build -f scss
- name: deploy new site - name: deploy new site
run: | run: |

3
.gitignore vendored
View file

@ -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

View file

@ -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