Initial scaffold: reader-magnet course stub for thistleandmoth.org
Sync courses / sync (push) Failing after 5s

Mirrors michaelferrara-eec-courses. course.yml is active: false and
all copy is TODO until the real reader-magnet file/cover art are
ready and the thistleandmoth-list Listmonk list exists.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-16 13:21:31 -04:00
commit 6768489072
5 changed files with 109 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
name: Sync courses
on:
push:
branches: [master]
jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Package and sync
run: |
tar czf /tmp/courses.tar.gz courses
status=$(curl -s -o /tmp/sync-response.json -w '%{http_code}' \
-X POST "http://eec-thistleandmoth:8080/admin/sync" \
-H "Authorization: Bearer ${THISTLEANDMOTH_EEC_SYNC_TOKEN}" \
--data-binary @/tmp/courses.tar.gz)
cat /tmp/sync-response.json
echo
if [ "$status" -ge 300 ]; then
echo "sync failed with status $status"
exit 1
fi
env:
THISTLEANDMOTH_EEC_SYNC_TOKEN: ${{ secrets.THISTLEANDMOTH_EEC_SYNC_TOKEN }}