Skip to content

Commit

Permalink
chore(release): 0.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ericvilla committed Sep 29, 2021
1 parent b7d9d0b commit 9b79871
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 2 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [0.7.1](https://github.com/Noovolari/leapp/compare/v0.7.0...v0.7.1) (2021-09-23)
## [0.7.2](https://github.com/Noovolari/leapp/compare/v0.7.1...v0.7.2) (2021-09-29)


### Bug Fixes

* fixed aws ssm start-session on linux systems using gnome-terminal ([b7d9d0b](https://github.com/Noovolari/leapp/commit/b7d9d0b388969538d8958e7f2ed560a6d75c2ce0))

### [0.7.1](https://github.com/Noovolari/leapp/compare/v0.7.0...v0.7.1) (2021-09-23)


### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Leapp",
"version": "0.7.1",
"version": "0.7.2",
"author": {
"name": "besharp",
"email": "[email protected]"
Expand Down
71 changes: 71 additions & 0 deletions pipeline.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
#!/bin/bash

DISTRIBUTION_ID=E26VMV2Y7MSACB
S3_BUCKET=s3://noovolari-leapp-website-distribution
OLD_PACKAGE_VERSION=$(node -p -e "require('./package.json').version")

aws s3 ls $S3_BUCKET
if [ $? != 0 ]; then
echo "error: wrong credentials or not Noovolari ones"
exit
fi

echo "npm run release -- --release-as $1"
npm run release -- --release-as $1

echo "Please review the auto-generated CHANGELOG.md"
echo "You can modify it and issue a 'git commit --amend' in another shell to amend the last commit. If you amend, remember to create the tag again."
read -p "Type any character once you have completed the review" -n 1 -s;
echo ""

echo "git push --follow-tags origin master"
git push --follow-tags origin master

NEW_PACKAGE_VERSION=$(node -p -e "require('./package.json').version")

echo "creating temp folder"
mkdir -p temp/

echo "npm run dist-mac-prod"
npm run dist-mac-prod
rm -Rf ./release/mac
rm -Rf ./release/mac-unpacked
rm -Rf ./release/.cache
rm -Rf ./release/builder-debug.yml
rm -Rf ./release/builder-effective-config.yaml
cp -r ./release/ ./temp/

rm "./temp/Leapp-$NEW_PACKAGE_VERSION-mac.zip"
zip "./temp/Leapp-$NEW_PACKAGE_VERSION-mac.zip" "./temp/Leapp-$NEW_PACKAGE_VERSION.dmg"

echo "npm run dist-deb-prod"
npm run dist-deb-prod
rm -Rf ./release/linux-unpacked
rm -Rf ./release/.cache
rm -Rf ./release/builder-debug.yml
rm -Rf ./release/builder-effective-config.yaml
cp -r ./release/ ./temp/

echo "npm run dist-win-prod"
#export WIN_CSC_KEY_PASSWORD=""
npm run dist-win-prod
rm -Rf ./release/win-unpacked
rm -Rf ./release/.cache
rm -Rf ./release/builder-debug.yml
rm -Rf ./release/builder-effective-config.yaml
cp -r ./release/ ./temp/

echo "move $S3_BUCKET/latest/'s content to $OLD_PACKAGE_VERSION folder"
aws s3 --recursive mv "$S3_BUCKET/latest/" "$S3_BUCKET/$OLD_PACKAGE_VERSION/"

echo "move temp folder's content to $S3_BUCKET/latest/"
aws s3 cp ./temp/ "$S3_BUCKET/latest/" --recursive

echo "upload CHANGELOG.md to $S3_BUCKET"
aws s3 cp CHANGELOG.md "$S3_BUCKET"

echo "invalidate $DISTRIBUTION_ID distribution"
aws cloudfront create-invalidation --distribution-id $DISTRIBUTION_ID --paths "/*"

echo "deleting temp folder"
rm -rf ./temp

0 comments on commit 9b79871

Please sign in to comment.