-
Notifications
You must be signed in to change notification settings - Fork 4
35 lines (35 loc) · 984 Bytes
/
deploy.yaml
File metadata and controls
35 lines (35 loc) · 984 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Deploy
on: workflow_dispatch
env:
OUTPUT: build
LANG: es_ES.UTF-8
jobs:
build:
name: Build lektor website
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Add locale ES
run: |
sudo locale-gen es_ES.UTF-8
locale -a
- name: Install requirements
run: |
./scripts/install
sudo apt-get -y install gettext python3-babel
- name: Build lektor website
run: |
source .venv/bin/activate
locale
lektor build -f webpack -O '${{ env.OUTPUT }}'
- name: Deploy lektor website
run: |
source .venv/bin/activate
lektor deploy -O '${{ env.OUTPUT }}' ghpages-https
env:
LEKTOR_DEPLOY_USERNAME: ${{ github.actor }}
LEKTOR_DEPLOY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}