Use github actions to deploy lektor site
This commit is contained in:
parent
236d0daee7
commit
b4085737b6
|
@ -0,0 +1,27 @@
|
||||||
|
name: "Deploy site"
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- '*'
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'master'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy-lektor-website:
|
||||||
|
name: Deploy lektor website
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-node@v2
|
||||||
|
- uses: actions/setup-python@v2
|
||||||
|
- run: pip install tox
|
||||||
|
- name: Run tox to build site
|
||||||
|
run: tox
|
||||||
|
- name: Deploy
|
||||||
|
if: github.event == 'push'
|
||||||
|
env:
|
||||||
|
LEKTOR_DEPLOY_USERNAME: ${{ secrets.LEKTOR_DEPLOY_USERNAME }}
|
||||||
|
LEKTOR_DEPLOY_PASSWORD: ${{ secrets.LEKTOR_DEPLOY_PASSWORD }}
|
||||||
|
run: lektor deploy ghpages
|
|
@ -2,6 +2,7 @@
|
||||||
*.pyc
|
*.pyc
|
||||||
*.egg-info
|
*.egg-info
|
||||||
.cache
|
.cache
|
||||||
|
.tox
|
||||||
packages/*/build
|
packages/*/build
|
||||||
packages/*/dist
|
packages/*/dist
|
||||||
webpack/node_modules
|
webpack/node_modules
|
||||||
|
|
|
@ -8,7 +8,9 @@ branches:
|
||||||
- master
|
- master
|
||||||
install:
|
install:
|
||||||
- "pip install -U pip"
|
- "pip install -U pip"
|
||||||
|
- "pip install "werkzeug<1.0"
|
||||||
- "pip install git+https://github.com/lektor/lektor#egg=Lektor"
|
- "pip install git+https://github.com/lektor/lektor#egg=Lektor"
|
||||||
|
- "pip install "werkzeug<1.0"
|
||||||
script:
|
script:
|
||||||
- "lektor build"
|
- "lektor build"
|
||||||
cache:
|
cache:
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
[project]
|
[project]
|
||||||
name = Lektor
|
name = Lektor
|
||||||
url = https://www.getlektor.com/
|
url = https://www.getlektor.com/
|
||||||
url_style = absolute
|
url_style = relative
|
||||||
|
|
||||||
[servers.production]
|
[servers.production]
|
||||||
enabled = yes
|
enabled = yes
|
||||||
|
@ -9,12 +9,18 @@ name = Production
|
||||||
target = rsync://deploy@flow.srv.pocoo.org/srv/websites/getlektor.com/static
|
target = rsync://deploy@flow.srv.pocoo.org/srv/websites/getlektor.com/static
|
||||||
default = yes
|
default = yes
|
||||||
|
|
||||||
|
[servers.ghpages]
|
||||||
|
enabled = yes
|
||||||
|
name = Github pages on repo
|
||||||
|
target = ghpages+https://lektor/_deployed-lektor-website
|
||||||
|
default = no
|
||||||
|
|
||||||
[packages]
|
[packages]
|
||||||
lektor-webpack-support = 0.3
|
lektor-webpack-support = 0.3
|
||||||
lektor-disqus-comments = 0.1
|
lektor-disqus-comments = 0.1
|
||||||
lektor-markdown-header-anchors = 0.1
|
lektor-markdown-header-anchors = 0.1
|
||||||
lektor-markdown-highlighter = 0.1
|
lektor-markdown-highlighter = 0.1
|
||||||
lektor-markdown-admonition = 0.1
|
lektor-markdown-admonition = 0.1
|
||||||
lektor-atom = 0.3.1
|
lektor-atom = 0.4.0
|
||||||
lektor-tags = 0.3
|
lektor-tags = 0.3
|
||||||
lektor-slugify = 0.4
|
lektor-slugify = 0.4
|
||||||
|
|
Loading…
Reference in New Issue