Skip to content

Website Build

Website Build #740

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.11"
- name: Install Python packages
run: pip install -r tools/requirements.txt
- name: Prepare provider list
run: python -m tools.run prepare_website
- name: Set up Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.121.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 }}