minetest_x_bows/bitbucket-pipelines.yml

38 lines
1.4 KiB
YAML
Raw Normal View History

2022-10-05 20:03:07 -05:00
image: atlassian/default-image:3
2022-10-05 19:54:07 -05:00
pipelines:
2022-11-02 22:29:05 -05:00
pull-requests:
"**":
- step:
name: Lint code
script:
- apt-get update
- apt-get -y install lua5.1
- apt-get -y install luarocks
- luarocks install luacheck
- luacheck .
branches:
master:
- step:
name: Lint code
script:
- apt-get update
- apt-get -y install lua5.1
- apt-get -y install luarocks
- luarocks install luacheck
- luacheck .
tags:
"*":
- step:
2022-11-02 22:37:31 -05:00
name: Lint code
2022-11-02 22:29:05 -05:00
script:
- apt-get update
- apt-get -y install lua5.1
- apt-get -y install luarocks
- luarocks install luacheck
- luacheck .
2022-11-02 22:37:31 -05:00
- step:
name: Deploy to ContentDB
script:
2022-11-02 22:39:38 -05:00
- 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"}'