forked from xdevplatform/twitter-python-ads-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrelease.sh
More file actions
executable file
·28 lines (22 loc) · 740 Bytes
/
release.sh
File metadata and controls
executable file
·28 lines (22 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env bash
RELEASE=$(printf "from twitter_ads.utils import get_version\nprint(get_version())" | python)
# tag the release
git tag "v$RELEASE"
git push --tags
# clean and build new docs
cd docs && make clean && make html && cd ..
# release new docs
git checkout gh-pages
rm -rf reference/*
cp -R docs/build/html/* reference/
git add reference
git commit -m "\"[update] docs refresh for $RELEASE\""
git push origin HEAD:gh-pages
git checkout master
# push to pypi (deprecated)
# python setup.py sdist upload --sign --identity="Twitter Ads API <twitterdev-ads@twitter.com>"
# push using twine
# build
python setup.py sdist bdist_wheel
# upload
twine upload dist/* --sign --identity="Twitter Ads API <twitterdev-ads@twitter.com>"