Add CI release to ContentDB
This commit is contained in:
parent
73bb54674d
commit
5b51ba83f5
|
@ -1,23 +1,34 @@
|
||||||
image: atlassian/default-image:3
|
image: atlassian/default-image:3
|
||||||
|
|
||||||
pipelines:
|
pipelines:
|
||||||
pull-requests:
|
pull-requests:
|
||||||
"**":
|
"**":
|
||||||
- step:
|
- step:
|
||||||
name: Lint code
|
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 .
|
||||||
branches:
|
branches:
|
||||||
master:
|
master:
|
||||||
- step:
|
- step:
|
||||||
name: Lint code
|
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 .
|
||||||
|
tags:
|
||||||
|
"*":
|
||||||
|
- step:
|
||||||
|
name: Deploy to ContentDB
|
||||||
|
script:
|
||||||
|
- apt-get update
|
||||||
|
- apt-get -y install lua5.1
|
||||||
|
- apt-get -y install luarocks
|
||||||
|
- luarocks install 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"}'
|
||||||
|
|
Ŝarĝante…
Reference in New Issue