-
Notifications
You must be signed in to change notification settings - Fork 358
78 lines (59 loc) · 1.71 KB
/
build-website.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: Build Website
on:
push:
branches:
- master
pull_request:
branches:
- master
# Allows to run this workflow manually from the Actions tab
workflow_dispatch:
# Build website every day at 4:00 UTC
schedule:
- cron: "0 4 * * *"
jobs:
build:
runs-on: ubuntu-22.04
env:
ARCHIVE: xmpp-org-master.tar.gz
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install Python packages
run: pip install -r tools/requirements.txt
- name: Set up Lua
uses: leafo/gh-actions-lua@v10
with:
luaVersion: "5.4"
- name: Set up LuaRocks
uses: leafo/gh-actions-luarocks@v4
- name: Install Lua packages
run: luarocks install luaexpat
- name: Software list linting
run: |
python tools/lint_software_list.py software.json
- name: Prepare XEP list
run: python tools/prepare_xep_list.py
- name: Prepare RFC list
run: python tools/prepare_rfc_list.py
- name: Prepare software list
run: python tools/prepare_software_list.py
- name: Generate/add compliance data
run: python tools/prepare_compliance.py
- name: Set up Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.80.0'
- name: Build website
run: hugo
- name: Create build archive
run: tar -czf ${{ env.ARCHIVE }} "./public"
- name: Upload build artifact
uses: actions/upload-artifact@master
with:
name: xmpp.org-master
path: ${{ env.ARCHIVE }}