@@ -53,7 +53,13 @@ definitions:
53
53
- ./atlas --version
54
54
- ./atlas upgrade
55
55
- ./atlas plugin install -n statlas
56
- - ./atlas statlas put --file "atlascode-0.0.0.vsix" -n atlascode-dev --auth-group "developers"
56
+ - mv atlascode-*.vsix atlascode.vsix
57
+ - |
58
+ if [ "$BITBUCKET_BRANCH" = "fork" ]; then
59
+ ./atlas statlas put --file "atlascode.vsix" -n atlascode-prod --auth-group "atlassian-frontend-dl-admin"
60
+ else
61
+ ./atlas statlas put --file "atlascode.vsix" -n atlascode-dev --auth-group "developers"
62
+ fi
57
63
58
64
- step : &build-prerelease-extension
59
65
name : Build Pre-release Extension
@@ -110,66 +116,6 @@ pipelines:
110
116
# - package.json
111
117
- step : *build-prerelease-extension
112
118
- step : *publish-extension-statlas
113
- - step : *publish-prerelease-extension
114
-
115
-
116
- # Now prepare and release the stable version
117
- - step :
118
- name : Set Stable Version
119
- script :
120
- - git fetch --tags
121
- - LAST_TAG=$(git describe --tags --abbrev=0 --match "v[0-9]*.[0-9]*.[0-9]*" 2>/dev/null || echo "v0.0.0")
122
- - LAST_VERSION=${LAST_TAG#v}
123
- - MAJOR=$(echo $LAST_VERSION | cut -d. -f1)
124
- - MINOR=$(echo $LAST_VERSION | cut -d. -f2)
125
- - PATCH=$(echo $LAST_VERSION | cut -d. -f3)
126
- - NEW_PATCH=$((PATCH + 1))
127
- - NEW_VERSION="$MAJOR.$MINOR.$NEW_PATCH"
128
- - ./scripts/version/assert-stable.sh $NEW_VERSION
129
- - npm -no-git-tag-version --allow-same-version -f version $NEW_VERSION
130
- - echo "Using version ${NEW_VERSION}"
131
- - echo "NEW_VERSION=${NEW_VERSION}" > version.env
132
- artifacts :
133
- - package.json
134
- - version.env
135
- - step : *build-extension
136
- - step :
137
- name : Publish Extension and Create Tag
138
- caches :
139
- - npm
140
- size : 2x
141
- script :
142
- - source version.env
143
- - PACKAGE_VERSION=$(node -p "require('./package.json').version")
144
- - echo "Using version ${PACKAGE_VERSION}"
145
- - npx vsce publish -p $VSCE_MARKETPLACE_TOKEN --baseContentUrl https://bitbucket.org/atlassian/atlascode/raw/main/ --packagePath atlascode-${PACKAGE_VERSION}.vsix
146
- - npx ovsx publish -p $OPENVSX_KEY "atlascode-${PACKAGE_VERSION}.vsix"
147
- -
git config --global user.email "[email protected] "
148
- - git config --global user.name "AtlasCode Release Bot"
149
- - git tag -a v${PACKAGE_VERSION} -m "Release v${PACKAGE_VERSION}"
150
- - git push origin v${PACKAGE_VERSION}
151
-
152
- # Scheduled pipeline for nightly builds
153
- schedules :
154
- - cron : " 0 0 * * *" # Runs at midnight every day
155
- branches :
156
- include : ["main"]
157
- name : nightly
158
- trigger : schedule
159
- deployment : nightly
160
- pipeline :
161
- - step :
162
- name : Set Nightly Version
163
- script :
164
- - PACKAGE_VERSION=$(./scripts/version/get-next-nightly.sh)
165
- - ./scripts/version/assert-nightly.sh $PACKAGE_VERSION
166
- - echo "Using version ${PACKAGE_VERSION}"
167
- - npm -no-git-tag-version --allow-same-version -f version $PACKAGE_VERSION
168
- artifacts :
169
- - package.json
170
- # - step: *build-e2e-test -- to be enalbed after OOM issues are fixed
171
- - step : *build-prerelease-extension
172
- - step : *publish-prerelease-extension
173
119
174
120
custom :
175
121
build-e2e-image :
0 commit comments