Start fleshing out the 'publish vsix' shell script
This commit is contained in:
@@ -310,7 +310,7 @@ jobs:
|
||||
on_failure:
|
||||
put: slack-notification
|
||||
params:
|
||||
channel: "@kdvolder"
|
||||
channel: '@kdvolder'
|
||||
text: |
|
||||
Concourse ${BUILD_PIPELINE_NAME}/${BUILD_JOB_NAME}/${BUILD_NAME} has failed!
|
||||
on_success:
|
||||
|
||||
33
concourse/tasks/publish-vsix-releases.sh
Executable file
33
concourse/tasks/publish-vsix-releases.sh
Executable file
@@ -0,0 +1,33 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
workdir=`pwd`
|
||||
|
||||
vsix_files=`ls ${workdir}/s3-*/*.vsix`
|
||||
|
||||
echo "vsix_files=$vsix_file"
|
||||
|
||||
exit 99
|
||||
|
||||
echo "extension_id=$extension_id"
|
||||
|
||||
sources=$workdir/sts4/vscode-extensions/$extension_id
|
||||
|
||||
release_version=`jq -r .version ${sources}/package.json`
|
||||
|
||||
echo "release_version=$release_version"
|
||||
|
||||
vsce publish -p $vsce_token --packagePath "$vsix_file"
|
||||
|
||||
echo "****************************************************************"
|
||||
echo "****************************************************************"
|
||||
echo "****************************************************************"
|
||||
echo "*** $extension_id $version published to vscode marketplace *****"
|
||||
echo "****************************************************************"
|
||||
echo "****************************************************************"
|
||||
echo "****************************************************************"
|
||||
|
||||
cd $sources
|
||||
|
||||
echo "Tagging release"
|
||||
git tag -f ${extension_id}-${release_version}-RELEASE
|
||||
git clone $workdir/sts4 $workdir/sts4-out
|
||||
Reference in New Issue
Block a user