Skip to content

spelling changes and default host url is updated to the new default (… #12

spelling changes and default host url is updated to the new default (…

spelling changes and default host url is updated to the new default (… #12

name: Upload Python Package
on:
push:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python '3.8'
uses: actions/setup-python@v3
with:
python-version: '3.8'
- name: Install Dependencies
run: |
python -m pip install --upgrade -r requirements.txt
- name: Build Distribution
run: |
python setup.py sdist
- name: Run Tests
run: |
python manage.py test
publish:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.8'
- name: Install Twine
run: |
python -m pip install --upgrade twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
TWINE_PYPI_URL: ${{ secrets.PYPI_URL }}
run: |
python setup.py sdist
ls .
twine upload --repository-url $TWINE_PYPI_URL -u $TWINE_USERNAME -p $TWINE_PASSWORD dist/*