@@ -1,7 +1,7 @@
name: Deploy to production
on:
push:
- branches:
+ tags:
- production
jobs:
deploy:
@@ -0,0 +1,20 @@
+version: '3'
+
+tasks:
+ move-to-production:
+ desc: Move the current branch to production
+ cmds:
+ - cmd: git tag -d production
+ ignore_error: false
+ silent: true
+ - cmd: git push origin :production
+ - cmd: git tag production
+ - cmd: git push origin production