File tree Expand file tree Collapse file tree 3 files changed +32
-7
lines changed
Expand file tree Collapse file tree 3 files changed +32
-7
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ environment :
7+ description : Environment to deploy to
8+ required : true
9+ default : heroku-production
10+ type : choice
11+ options :
12+ - heroku-production
13+
14+ jobs :
15+ build :
16+ runs-on : ubuntu-latest
17+ environment : ${{ github.event.inputs.environment }}
18+ steps :
19+ - uses : actions/checkout@v4
20+ - name : Install Heroku CLI
21+ run : |
22+ curl https://cli-assets.heroku.com/install.sh | sh
23+ - uses : akhileshns/heroku-deploy@e3eb99d45a8e2ec5dca08735e089607befa4bf28
24+ with :
25+ heroku_api_key : ${{ secrets.HEROKU_API_KEY }}
26+ heroku_app_name : ${{ vars.HEROKU_APP_NAME }}
27+ heroku_email : ${{ vars.HEROKU_EMAIL }}
Original file line number Diff line number Diff line change @@ -17,13 +17,12 @@ jobs:
1717 - name : Checkout main
1818 uses : actions/checkout@v4
1919 - name : Python 3.10 Setup
20- uses : actions /setup-python@v4
20+ uses : astral-sh /setup-uv@v5
2121 with :
2222 python-version : " 3.12"
2323 - name : Install requirements for docs
2424 run : |
2525 sudo apt-get update
26- pip install -U uv
27- uv pip install --system -r docs/requirements.txt
26+ uv pip install -r docs/requirements.txt
2827 - name : Build and deploy docs
2928 run : mkdocs gh-deploy --force
Original file line number Diff line number Diff line change @@ -28,17 +28,16 @@ jobs:
2828 - 6379:6379
2929
3030 steps :
31- - uses : actions/checkout@v2
31+ - uses : actions/checkout@v4
3232 - name : Python Setup
33- uses : actions /setup-python@v2
33+ uses : astral-sh /setup-uv@v5
3434 with :
3535 python-version : " 3.12"
3636 - name : Install dependencies
3737 run : |
3838 sudo apt-get update
3939 sudo apt-get install libpq-dev
40- pip install --upgrade uv
41- uv pip install --system -r requirements.txt
40+ uv pip install -r requirements.txt
4241 - name : Run pre-commit
4342 run : pre-commit run -a
4443 - name : Run Celery worker
You can’t perform that action at this time.
0 commit comments