Skip to content

Commit 8309228

Browse files
authored
Merge pull request #264 from dwreeves/main
Add github action for deployment
2 parents 667857d + e40572f commit 8309228

File tree

3 files changed

+32
-7
lines changed

3 files changed

+32
-7
lines changed

.github/workflows/deploy.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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 }}

.github/workflows/docs.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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

.github/workflows/tests.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)