File tree Expand file tree Collapse file tree 2 files changed +60
-2
lines changed Expand file tree Collapse file tree 2 files changed +60
-2
lines changed Original file line number Diff line number Diff line change 1
1
# .github/workflows/deploy_vercel.yml
2
-
3
2
name : DeployProd
4
3
on :
5
4
push :
8
7
workflow_dispatch :
9
8
inputs :
10
9
release :
11
- description : ' release type'
10
+ description : ' release type (prod release only) '
12
11
required : true
13
12
default : ' production'
14
13
targetbranch :
20
19
VERCEL_ORG_ID : ${{ secrets.VERCEL_ORG_ID }}
21
20
VERCEL_PROJECT_ID : ${{ secrets.VERCEL_PROJECT_ID }}
22
21
jobs :
22
+ release :
23
+ name : Release
24
+ if : " github.event_name == 'workflow_dispatch' && github.event.inputs.release == 'production'"
25
+ runs-on : ubuntu-latest
26
+ steps :
27
+ - uses : actions/setup-node@v3
28
+ with :
29
+ node-version : 18
30
+ - uses : actions/checkout@v3
31
+ with :
32
+ persist-credentials : false
33
+ fetch-depth : 0
34
+ - name : setup git
35
+ run : |
36
+ git config --local user.email "[email protected] "
37
+ git config --local user.name "Techadmin"
38
+ npm install -g auto-changelog
39
+
40
+ - name : update version prod
41
+ run : |
42
+ npm version minor -m "chore: release prod version %s [skip build]"
43
+ git push https://${{ secrets.GIT_AUTH }}@github.com/GoodDollar/GoodProtocolUI staging:${{ github.event.inputs.targetbranch }} --force --follow-tags
44
+ git checkout master
45
+ git merge staging
46
+ git push https://${{ secrets.GIT_AUTH }}@github.com/GoodDollar/GoodProtocolUI master --follow-tags
23
47
deploy :
24
48
runs-on : ubuntu-latest
25
49
steps :
Original file line number Diff line number Diff line change 8
8
branches :
9
9
- master
10
10
workflow_dispatch :
11
+ inputs :
12
+ release :
13
+ description : ' release type (qa release only)'
14
+ required : true
15
+ default : ' qa'
16
+ targetbranch :
17
+ description : ' target deployment branch'
18
+ required : true
19
+ default : ' staging'
11
20
env :
12
21
VERCEL_ORG_ID : ${{ secrets.VERCEL_ORG_ID }}
13
22
VERCEL_PROJECT_ID : ${{ secrets.VERCEL_PROJECT_ID }}
14
23
jobs :
24
+ release :
25
+ name : Release
26
+ if : " github.event_name == 'workflow_dispatch' && github.event.inputs.release == 'qa'"
27
+ runs-on : ubuntu-latest
28
+ steps :
29
+ - uses : actions/setup-node@v3
30
+ with :
31
+ node-version : 18
32
+ - uses : actions/checkout@v3
33
+ with :
34
+ persist-credentials : false
35
+ fetch-depth : 0
36
+ - name : setup git
37
+ run : |
38
+ git config --local user.email "[email protected] "
39
+ git config --local user.name "Techadmin"
40
+ npm install -g auto-changelog
41
+
42
+ - name : update version qa
43
+ run : |
44
+ npm version minor -m "chore: release qa version %s [skip build]"
45
+ git push https://${{ secrets.GIT_AUTH }}@github.com/GoodDollar/GoodDAPP master:${{ github.event.inputs.targetbranch }} --force --follow-tags
46
+ git checkout master
47
+ git merge staging
48
+ git push https://${{ secrets.GIT_AUTH }}@github.com/GoodDollar/GoodDAPP master --follow-tags
15
49
preview :
16
50
runs-on : ubuntu-latest
17
51
environment :
You can’t perform that action at this time.
0 commit comments