mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-24 02:02:16 -05:00
0dbfaff260
This pipeline features the following: - Building of an nginx image with the XEPs as static files, in all formats. - Incremental builds on the main branch and incremental builds for MRs based on the last main build. - Automatic archiving of changed XEPs to the attic - Automatic announcement to the mailing lists
20 lines
470 B
Bash
20 lines
470 B
Bash
#!/bin/bash
|
|
set -euo pipefail
|
|
state_dir=state
|
|
old_xeplist="$state_dir/old-xeplist.xml"
|
|
new_xeplist="build/xeplist.xml"
|
|
mkdir -p "$state_dir"
|
|
|
|
function update_state() {
|
|
cp "$new_xeplist" "$old_xeplist"
|
|
}
|
|
|
|
if [ ! -f "$old_xeplist" ]; then
|
|
printf '%q does not exist; assuming this is the first run!' "$old_xeplist" >&2
|
|
update_state
|
|
exit 0
|
|
fi
|
|
|
|
./tools/send-updates.py -y -c "$EMAIL_CFG" --no-editorial -- "$old_xeplist" "$new_xeplist" $EMAIL_RECIPIENTS
|
|
update_state
|