Skip to content

Commit

Permalink
Update release scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
nolimits4web committed Jun 13, 2020
1 parent 650c4c4 commit 04742ce
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 97 deletions.
59 changes: 0 additions & 59 deletions scripts/release-asset.sh

This file was deleted.

38 changes: 0 additions & 38 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,44 +85,6 @@ if [[ $REPLY =~ ^[Yy]$ ]]; then
git tag v"$VERSION"
git push origin --tags

# Create assets
echo "Generate assets"
(
(
cd packages/core
tar -zcvf ../framework7.tar.gz ./*
)
(
cd packages/react
tar -zcvf ../framework7-react.tar.gz ./*
)
(
cd packages/vue
tar -zcvf ../framework7-vue.tar.gz ./*
)
(
cd packages/svelte
tar -zcvf ../framework7-svelte.tar.gz ./*
)
)

# Read TOKEN
token=$(<./.github-access-token)

echo "Creating release"
API_JSON=$(printf '{"tag_name": "v%s","name": "v%s","body": "Release of version %s","draft": false,"prerelease": false}' $VERSION $VERSION $VERSION)
curl --data "$API_JSON" https://api.github.com/repos/framework7io/framework7/releases?access_token=$token

# Upload assets
echo "Uploading release assets"
source "scripts/release-asset.sh" github_api_token=$token tag=v$VERSION filename=./packages/framework7.tar.gz
source "scripts/release-asset.sh" github_api_token=$token tag=v$VERSION filename=./packages/framework7-react.tar.gz
source "scripts/release-asset.sh" github_api_token=$token tag=v$VERSION filename=./packages/framework7-vue.tar.gz
source "scripts/release-asset.sh" github_api_token=$token tag=v$VERSION filename=./packages/framework7-svelte.tar.gz

# Remove generated assets
rm -rf ./packages/*.tar.gz

echo "Done"

fi

0 comments on commit 04742ce

Please sign in to comment.