Don't forget! Set up token
secret for the pip account. See how to set pip token
name: Upload python to twine
on:
push:
branches:
- master
- releases/*
jobs:
upload:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: yaananth/twine-upload@v1
env:
RUNNER: ${{ toJson(runner) }}
SECRETS: ${{ toJson(secrets) }}
This github action upload a python project to pip using twine.
git checkout -b releases/v1
rm -rf node_modules
sed -i '/node_modules/d' .gitignore # Bash command that removes node_modules from .gitignore
git add node_modules .gitignore
git commit -am node_modules
git push origin releases/v1
git push origin :refs/tags/v1
git tag -fa v1 -m "Update v1 tag"
git push origin v1
git checkout tags/v1 -b testtv1
npm run build
git commit -am "update"
git tag -fa v1 -m "Update v1 tag"
git push origin v1 --force