Add CI release to ContentDB

This commit is contained in:
Juraj Vajda 2022-11-02 23:37:31 -04:00
parent 5b51ba83f5
commit 49384072d8

View File

@ -24,11 +24,14 @@ pipelines:
tags: tags:
"*": "*":
- step: - step:
name: Deploy to ContentDB name: Lint code
script: script:
- apt-get update - apt-get update
- apt-get -y install lua5.1 - apt-get -y install lua5.1
- apt-get -y install luarocks - apt-get -y install luarocks
- luarocks install luacheck - luarocks install luacheck
- luacheck . - luacheck .
- curl --location --request POST 'https://content.minetest.net/api/packages/SaKeL/x_bows/releases/new/' --header 'Authorization:Bearer $CONTENT_DB_X_BOWS_TOKEN' --header 'Content-Type:application/json' --data-raw '{"method":"git", "title":"$BITBUCKET_TAG", "ref":"master"}' - step:
name: Deploy to ContentDB
script:
- curl --location --request POST 'https://content.minetest.net/api/packages/SaKeL/x_bows/releases/new/' --header 'Authorization:Bearer $CONTENT_DB_X_BOWS_TOKEN' --header "'"Content-Type:application/json"'" --data-raw '{"method":"git", "title":"'"$BITBUCKET_TAG"'", "ref":"master"}'