From 39c40d3aff8b7e228f73b90d7e32c6b070a06971 Mon Sep 17 00:00:00 2001 From: Liz Date: Thu, 12 Dec 2024 09:12:06 -0500 Subject: [PATCH] Create surfer.yml --- .github/workflows/surfer.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/surfer.yml diff --git a/.github/workflows/surfer.yml b/.github/workflows/surfer.yml new file mode 100644 index 0000000..1a18e05 --- /dev/null +++ b/.github/workflows/surfer.yml @@ -0,0 +1,28 @@ +stages: + - build + - deploy + +variables: + GIT_SUBMODULE_STRATEGY: recursive + +build: + image: monachus/hugo + stage: build + script: + - hugo + artifacts: + paths: + - public + only: + - main + +deploy: + image: node:latest + stage: deploy + script: + - npm -g install cloudron-surfer + - surfer put --token $SURFER_KEY --server test.binarydigit.media public/* / + + only: + - main +