Skip to content

Website Build

Website Build #834

Workflow file for this run

# SPDX-FileCopyrightText: 2022 XMPP Providers Team
#
# SPDX-License-Identifier: CC0-1.0
name: Website Build
on:
push:
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-latest
env:
ARCHIVE: providers-xmpp-net-master.tar.gz
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Install Python packages
run: uv pip install --system -r pyproject.toml
- name: Prepare provider list
run: python -m src.run prepare_website
- name: Set up Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: "0.145.0"
- name: Build website
run: hugo
- name: Create build archive
run: tar -czf ${{ env.ARCHIVE }} "./public"
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: providers-xmpp-net-master
path: ${{ env.ARCHIVE }}