Skip to content

Use the version of black we actually use in linter check, not "stable". #249

Use the version of black we actually use in linter check, not "stable".

Use the version of black we actually use in linter check, not "stable". #249

name: Deploy to Staging
on:
push:
branches:
- 'main'
jobs:
request_deployment:
runs-on: ubuntu-latest
if: github.repository == 'n-rook/thscoreboard'
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
- name: Deploy to staging
working-directory: ./project/thscoreboard
env:
LOCAL_DATABASE_PASSWORD: unused
DEPLOY_PASSWORD: ${{ secrets.STAGING_DEPLOYER_PASSWORD }}
run: |
python manage.py remote_deploy staging.silentselene.net deployer