deploy to gitea for now
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user