From 49384072d8e1661eef24c39f5f867a109cd5a92d Mon Sep 17 00:00:00 2001 From: Juraj Vajda Date: Wed, 2 Nov 2022 23:37:31 -0400 Subject: [PATCH] Add CI release to ContentDB --- bitbucket-pipelines.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index 120a4fd..75212fa 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -24,11 +24,14 @@ pipelines: tags: "*": - step: - name: Deploy to ContentDB + name: Lint code 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"}' + - 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"}'