chiark / gitweb /
record what is deployed
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 27 Nov 2020 22:22:29 +0000 (22:22 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 27 Nov 2020 22:22:39 +0000 (22:22 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Makefile

index 7b4ee079cbe3da2d3e416569e2dd2698840055e3..70e3d168d07eaddaa27fcd1a092d019201f49e8e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -41,6 +41,7 @@ BUNDLE_SOURCES ?= bundle-rust-sources
 DEPLOY_ARCH=x86_64-unknown-linux-musl
 DEPLOY_RELEASE=debug
 DEPLOY_TARGET_DIR=$(TARGET_DIR)/$(addsuffix /,$(DEPLOY_ARCH))$(DEPLOY_RELEASE)
+DEPLOY_BRANCH=deployed
 
 #---------- nailing-cargo ----------
 
@@ -258,6 +259,7 @@ deploy: stamp/cargo.deploy-build bundled-sources assets libraries
        rsync -r $(FILEASSETS) $(addprefix $(WASM_PACKED)/, $(WASM_ASSETS)) \
                $(DEPLOY_BASE)/assets/
        ssh -o BatchMode=true $(DEPLOY_USER) $(DEPLOY_FINISH)
+       git branch -f $(DEPLOYED_BRANCH)
 
 #$(DEPLOY_BASE)/bundled-sources