1 parent 87286d0 commit 42e6a46Copy full SHA for 42e6a46
1 file changed
.github/workflows/deploy.yml
@@ -1,9 +1,15 @@
1
-name: Deploy on tag
+name: Deploy
2
3
on:
4
push:
5
tags:
6
- 'v*.*.*'
7
+ workflow_dispatch:
8
+ inputs:
9
+ ref:
10
+ description: 'Git ref to deploy (tag, branch, or SHA). Defaults to origin/main.'
11
+ required: false
12
+ default: 'origin/main'
13
14
concurrency:
15
group: deploy-prod
@@ -25,4 +31,5 @@ jobs:
25
31
script: |
26
32
set -euo pipefail
27
33
cd /opt/openstudy
28
- OPENSTUDY_DEPLOY_REF="${{ github.ref_name }}" ./deploy.sh --pull
34
+ REF="${{ github.event.inputs.ref || github.ref_name }}"
35
+ OPENSTUDY_DEPLOY_REF="$REF" ./deploy.sh --pull
0 commit comments