added Bot documentation #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to staging environment | |
on: | |
push: | |
branches: [main] | |
jobs: | |
tests: | |
uses: raian621/groupmeme/.github/workflows/run-tests.yml@main | |
staging: | |
runs-on: ubuntu-latest | |
needs: tests | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install build dependencies | |
run: | | |
python -m pip install --upgrade pip wheel | |
python -m pip install -r dev-requirements.txt | |
- name: Build package | |
run: python -m build | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip wheel twine | |
- name: Deploy package to TestPyPi | |
env: | |
USERNAME: ${{ secrets.TEST_PYPI_USERNAME }} | |
PASSWORD: ${{ secrets.TEST_PYPI_PASSWORD }} | |
run: python -m twine upload --repository testpypi dist/* -u $USERNAME -p $PASSWORD --skip-existing |