lektor-website/.github/workflows/deploy.yml

29 lines
705 B
YAML
Raw Normal View History

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
2021-09-18 12:39:49 +02:00
if: github.event_name != 'push'
run: tox
2021-09-18 12:39:49 +02:00
- name: Run tox to build site and deploy
2021-09-18 12:33:19 +02:00
if: github.event_name == 'push'
env:
LEKTOR_DEPLOY_USERNAME: ${{ secrets.LEKTOR_DEPLOY_USERNAME }}
LEKTOR_DEPLOY_PASSWORD: ${{ secrets.LEKTOR_DEPLOY_PASSWORD }}
2021-09-18 12:39:49 +02:00
run: tox -e deploy