-
Notifications
You must be signed in to change notification settings - Fork 50
46 lines (39 loc) · 1.04 KB
/
publish.yml
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
36
37
38
39
40
41
42
43
44
45
46
name: Publish
on:
push:
branches:
- master
workflow_dispatch:
inputs:
reason:
description: 'Reason'
required: false
default: 'Manual trigger'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python
uses: actions/[email protected]
with:
python-version: 3.8
- name: Install dependencies
run: pip install Lektor
- name: Build pages
run: lektor build
- name: Deploy pages
env:
LEKTOR_DEPLOY_USERNAME: lektor-bot
LEKTOR_DEPLOY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
run: |
lektor deploy ghpages
# needs to use an org. token here to push to a different repo
# invenio-software.git (with dash)
- name: Deploy pages-dash
env:
LEKTOR_DEPLOY_USERNAME: lektor-bot
LEKTOR_DEPLOY_PASSWORD: ${{ secrets.LEKTOR_DEPLOY_TOKEN_INVENIOBOT }}
run: |
lektor deploy ghpages-dash