File tree Expand file tree Collapse file tree 4 files changed +35
-8
lines changed Expand file tree Collapse file tree 4 files changed +35
-8
lines changed Original file line number Diff line number Diff line change 14
14
branches :
15
15
- master
16
16
release :
17
- branches :
18
- - master
19
17
types :
20
18
- released
21
19
jobs :
@@ -102,10 +100,24 @@ jobs:
102
100
asset_path : ${{ needs.build.outputs.name }}.vsix
103
101
asset_name : ${{ needs.build.outputs.name }}.vsix
104
102
asset_content_type : application/zip
105
- publish :
103
+ get_tagged_branch :
106
104
if : github.event_name == 'release'
107
105
runs-on : windows-latest
108
106
needs : build
107
+ outputs :
108
+ taggedbranch : ${{ steps.find-branch.outputs.taggedbranch }}
109
+ steps :
110
+ - name : Find which branch the release tag points at
111
+ id : find-branch
112
+ shell : bash
113
+ run : |
114
+ set -x
115
+ TAGGEDBRANCH=$(git for-each-ref --points-at=${{github.sha}} --format='%(refname:lstrip=2)' refs/heads/)
116
+ echo ::set-output name=taggedbranch::$TAGGEDBRANCH
117
+ publish :
118
+ needs : get_tagged_branch
119
+ if : github.event_name == 'release' && needs.find-branch.outputs.taggedbranch == 'master'
120
+ runs-on : windows-latest
109
121
steps :
110
122
- uses : actions/checkout@v2
111
123
with :
@@ -119,6 +131,9 @@ jobs:
119
131
id : set-version
120
132
shell : bash
121
133
run : |
134
+ # REMOVE BELOW AFTER TESTING
135
+ exit 1
136
+ # REMOVE ABOVE AFTER TESTING
122
137
VERSION=${{ needs.build.outputs.version }}
123
138
NEXT_VERSION=`echo $VERSION | awk -F. '/[0-9]+\./{$NF++;print}' OFS=.`
124
139
tmp=$(mktemp)
Original file line number Diff line number Diff line change 14
14
branches :
15
15
- prerelease
16
16
release :
17
- branches :
18
- - prerelease
19
17
types :
20
18
- released
21
19
jobs :
@@ -104,10 +102,24 @@ jobs:
104
102
asset_path : ${{ needs.build.outputs.name }}.vsix
105
103
asset_name : ${{ needs.build.outputs.name }}.vsix
106
104
asset_content_type : application/zip
107
- publish :
105
+ get_tagged_branch :
108
106
if : github.event_name == 'release'
109
107
runs-on : windows-latest
110
108
needs : build
109
+ outputs :
110
+ taggedbranch : ${{ steps.find-branch.outputs.taggedbranch }}
111
+ steps :
112
+ - name : Find which branch the release tag points at
113
+ id : find-branch
114
+ shell : bash
115
+ run : |
116
+ set -x
117
+ TAGGEDBRANCH=$(git for-each-ref --points-at=${{github.sha}} --format='%(refname:lstrip=2)' refs/heads/)
118
+ echo ::set-output name=taggedbranch::$TAGGEDBRANCH
119
+ publish :
120
+ needs : get_tagged_branch
121
+ if : github.event_name == 'release' && needs.find-branch.outputs.taggedbranch == 'prerelease'
122
+ runs-on : windows-latest
111
123
steps :
112
124
- uses : actions/checkout@v2
113
125
with :
Original file line number Diff line number Diff line change 1
- ## 3.1.2022012602 (26-Jan-2022 pre-release)
1
+ ## 3.1.2022012603 (26-Jan-2022 pre-release)
2
2
* Update README.
3
3
* Automate pre-release publication to Marketplace.
4
4
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " servermanager" ,
3
3
"displayName" : " InterSystems Server Manager" ,
4
- "version" : " 3.1.2022012603-SNAPSHOT " ,
4
+ "version" : " 3.1.2022012603" ,
5
5
"preview" : true ,
6
6
"publisher" : " intersystems-community" ,
7
7
"description" : " Define connections to InterSystems servers. Browse and manage those servers." ,
You can’t perform that action at this time.
0 commit comments