deploy to gitea for now

This commit is contained in:
2025-08-29 23:50:00 -04:00
parent 8cecc6cc23
commit 2a137aec84

View File

@@ -29,14 +29,17 @@ steps:
commands:
- npm start
- name: upload-nextcloud
- name: upload-to-gitea-release
image: curlimages/curl:latest
when:
event:
- cron
environment:
NEXTCLOUD_URL: ${NEXTCLOUD_URL}
NEXTCLOUD_TOKEN: ${NEXTCLOUD_TOKEN}
GITEA_TOKEN: ${GITEA_TOKEN}
commands:
- echo "not uploading yet..."
# - curl -X PUT -H "Authorization: Bearer $NEXTCLOUD_TOKEN" -H "Content-Type: application/pdf" --upload-file tomb-of-shadows.pdf "$NEXTCLOUD_URL/tomb-of-shadows-$(date +%F).pdf"
- pdf=$(ls *.pdf | head -n1)
- tag=$(date +%F)
- curl -X POST \
-H "Authorization: token $GITEA_TOKEN" \
-F "attachment=@$pdf" \
"https://git.keligrubb.com/api/v1/repos/keligrubb/scrollsmith/releases/$tag/assets"