smaller config fixes
This commit is contained in:
parent
61de728f58
commit
3325cfa59a
2 changed files with 9 additions and 6 deletions
8
.gitignore
vendored
8
.gitignore
vendored
|
@ -1,12 +1,10 @@
|
|||
.cache/*
|
||||
.cache/**
|
||||
__pycache__/**
|
||||
.upm
|
||||
venv/**
|
||||
**/__pycache__/**
|
||||
.pythonlibs/**
|
||||
replit*txt
|
||||
.config/**
|
||||
replit*txt
|
||||
.replit
|
||||
**/dist/**
|
||||
**/.env
|
||||
package/dist/**
|
||||
package/.env
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
source .env
|
||||
if [ -z ${PYPI_TOKEN+x} ]; then
|
||||
echo 'Cannot upload without a pypi token. Please set one in a .env file next to this script with the name of `PYPI_TOKEN`.'
|
||||
exit 1
|
||||
fi
|
||||
echo "🧽 Pruging old package files... 🧽"
|
||||
rm -rf dist
|
||||
mkdir dist
|
||||
|
@ -7,5 +12,5 @@ echo "🛠 Building... 🛠"
|
|||
poetry build > /dev/null
|
||||
echo -n "☁️ Uploading... ☁️"
|
||||
poetry publish -u __token__ -p $PYPI_TOKEN
|
||||
#python3 -m twine upload -r pypi dist/*
|
||||
echo "✨ All done! ✨"
|
||||
unset PYPI_TOKEN
|
||||
|
|
Loading…
Add table
Reference in a new issue