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
15
.github/workflows/lektor-check.yml
vendored
15
.github/workflows/lektor-check.yml
vendored
|
@ -18,17 +18,22 @@ jobs:
|
|||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
- name: Cache lfs data
|
||||
- name: Cache lfs
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: ~/.git
|
||||
path: ~/.cache/lektor
|
||||
key: lektorcache
|
||||
- name: Cache lfs
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: .git
|
||||
key: lfs
|
||||
- name: install and pull lfs
|
||||
run: |
|
||||
sudo apt-get install git-lfs
|
||||
git lfs pull
|
||||
- name: check with lektor
|
||||
- name: install lektor
|
||||
run: pip install lektor
|
||||
- name: build with lektor
|
||||
run: |
|
||||
pip install lektor
|
||||
# stop the build if there are Python syntax errors or undefined names
|
||||
lektor build -f scss
|
||||
|
|
28
.github/workflows/lektor-deploy.yml
vendored
28
.github/workflows/lektor-deploy.yml
vendored
|
@ -7,7 +7,7 @@ on:
|
|||
|
||||
# Environment variables available to all jobs and steps in this workflow
|
||||
env:
|
||||
GKE_PROJECT: ${{ secrets.GKE_PROJECT }}
|
||||
LEKTOR_DEPLOY_KEY: ${{ secrets.LEKTOR_DEPLOY_KEY }}
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
@ -29,29 +29,21 @@ jobs:
|
|||
- name: Cache lfs data
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: ~/.git
|
||||
key: |
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
lfs
|
||||
- name: install git-lfs
|
||||
path: .git
|
||||
key: .git/lfs
|
||||
- name: install git-lfs && lektor
|
||||
run: |
|
||||
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
|
||||
run: git lfs pull
|
||||
- name: build with lektor
|
||||
run: |
|
||||
pip install lektor
|
||||
# stop the build if there are Python syntax errors or undefined names
|
||||
lektor build -f scss
|
||||
- name: deploy new site
|
||||
run: |
|
||||
|
|
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -12,6 +12,9 @@ Session.vim
|
|||
# auto-generated tag files
|
||||
tags
|
||||
|
||||
# lektor
|
||||
.cache/
|
||||
|
||||
# ---> Windows
|
||||
# Windows thumbnail cache files
|
||||
Thumbs.db
|
||||
|
|
2
Makefile
2
Makefile
|
@ -50,6 +50,7 @@ pull:
|
|||
git pull origin master
|
||||
|
||||
push:
|
||||
rm .lfsconfig
|
||||
if git config remote.gitea.url > /dev/null; then
|
||||
git push gitea master
|
||||
else
|
||||
|
@ -62,3 +63,4 @@ push:
|
|||
git remote add github git@github.com:c3woc/c3woc-website.git
|
||||
git push github master
|
||||
fi
|
||||
git restore .lfsconfig
|
||||
|
|
Loading…
Reference in a new issue