deploy to gitea for now
This commit is contained in:
@@ -29,14 +29,17 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- npm start
|
- npm start
|
||||||
|
|
||||||
- name: upload-nextcloud
|
- name: upload-to-gitea-release
|
||||||
image: curlimages/curl:latest
|
image: curlimages/curl:latest
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- cron
|
- cron
|
||||||
environment:
|
environment:
|
||||||
NEXTCLOUD_URL: ${NEXTCLOUD_URL}
|
GITEA_TOKEN: ${GITEA_TOKEN}
|
||||||
NEXTCLOUD_TOKEN: ${NEXTCLOUD_TOKEN}
|
|
||||||
commands:
|
commands:
|
||||||
- echo "not uploading yet..."
|
- pdf=$(ls *.pdf | head -n1)
|
||||||
# - 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"
|
- 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