Compare commits
2 Commits
testbranch
...
6658a09918
| Author | SHA1 | Date | |
|---|---|---|---|
| 6658a09918 | |||
| 928347ee95 |
@@ -25,7 +25,7 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- apk add --no-cache openssh-client sshpass
|
- apk add --no-cache openssh-client sshpass
|
||||||
- mkdir -p /root/.ssh
|
- mkdir -p /root/.ssh
|
||||||
- sshpass -p $DROPAREA_SSH_PASSWORD scp -o StrictHostKeyChecking=no -P $DROPAREA_PORT $GAME_NAME.$GAME_LANG $GAME_NAME.tic $GAME_NAME.html.zip $DROPAREA_USER@$DROPAREA_HOST:$DROPAREA_TARGET_PATH
|
- sshpass -p $DROPAREA_SSH_PASSWORD scp -o StrictHostKeyChecking=no -P $DROPAREA_PORT $GAME_NAME.$GAME_LANG $GAME_NAME.tic $GAME_NAME.html.zip $DROPAREA_USER@$DROPAREA_HOST:$DROPAREA_TARGET_PATH/$GAME_NAME/
|
||||||
|
|
||||||
- name: update
|
- name: update
|
||||||
image: alpine
|
image: alpine
|
||||||
@@ -36,4 +36,4 @@ steps:
|
|||||||
from_secret: update_secret_key
|
from_secret: update_secret_key
|
||||||
commands:
|
commands:
|
||||||
- apk add --no-cache curl
|
- apk add --no-cache curl
|
||||||
- curl "$UPDATE_SERVER/update?secret=$UPDATE_SECRET&name=$GAME_NAME&platform=tic80"
|
- curl "$UPDATE_SERVER/update?secret=$UPDATE_SECRET&name=$GAME_NAME&platform=tic80"
|
||||||
13
Makefile
13
Makefile
@@ -19,8 +19,8 @@ all: build
|
|||||||
build: $(OUTPUT)
|
build: $(OUTPUT)
|
||||||
|
|
||||||
$(OUTPUT): $(SRC) $(ORDER)
|
$(OUTPUT): $(SRC) $(ORDER)
|
||||||
@rm -f $(OUTPUT)
|
@rm -f $(OUTPUT)
|
||||||
@while read f; do \
|
@while read f; do \
|
||||||
cat "$(SRC_DIR)/$$f" >> $(OUTPUT); \
|
cat "$(SRC_DIR)/$$f" >> $(OUTPUT); \
|
||||||
echo "" >> $(OUTPUT); \
|
echo "" >> $(OUTPUT); \
|
||||||
done < $(ORDER)
|
done < $(ORDER)
|
||||||
@@ -46,8 +46,13 @@ export_assets: build
|
|||||||
$(OUTPUT) > $(ASSETS_LUA)
|
$(OUTPUT) > $(ASSETS_LUA)
|
||||||
|
|
||||||
export: build
|
export: build
|
||||||
tic80 --cli --skip --fs=. \
|
@{ \
|
||||||
--cmd="load $(OUTPUT) & save $(PROJECT) & export html $(PROJECT).html & exit"
|
VERSION=$$(sed -n 's/^-- version: //p' $(OUTPUT) | head -n 1); \
|
||||||
|
echo "==> Exporting HTML for version $$VERSION"; \
|
||||||
|
mkdir -p "$$VERSION"; \
|
||||||
|
tic80 --cli --skip --fs=. \
|
||||||
|
--cmd="load $(OUTPUT) & save $(PROJECT) & export html $$VERSION/$(PROJECT).html & exit"; \
|
||||||
|
}
|
||||||
|
|
||||||
watch:
|
watch:
|
||||||
make build
|
make build
|
||||||
|
|||||||
Reference in New Issue
Block a user